Re: Re: Call JS Function with PHP Header()?

From: Date: Thu, 03 Jun 2004 17:59:25 +0000
Subject: Re: Re: Call JS Function with PHP Header()?
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-187566@lists.php.net to get a copy of this message
* and then Torsten Roehr declared.... > > header("Location: javascript:this.print()"); > > > > Which of course does not work. Anyone know how I might do it? > > > try this: > > echo "<script language=\"JavaScript\"> > <!-- > this.print(); > //--> > </script>"; Thanks Torsten, I have managed to do that, but it's in the <body> like this: <!-- <script type="text/javascript"> this.print(); </script> //--> Right in the middle of the body. It doesnt work LoL! - Seems to me that it should do...? -- Nick W

« previous php.general (#187566) next »