"Nick Wilson" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi everyone, > > I am trying to work within someone elses modular system so my > flexibility is rather limited. > > I'm trying to do this: > > header("Location: javascript:this.print()"); > > Which of course does not work. Anyone know how I might do it? > > Many thanks... > -- > Nick W
Hi Nick, try this: echo "<script language=\"JavaScript\"> <!-- this.print(); //--> </script>"; You have to put it into a valid HTML page. Regards, Torsten Roehr -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php