You should be able to use the comment tags, just put them inside the
<script> tags:

echo "<script language=\"javascript\" type=\"text/javascript\">
<!--
this.print()
//-->
</script>";

I don't believe you need a semi-colon after this.print within the
javascript script.

> [Original Message]
> From: Nick Wilson <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Date: 06/03/2004 11:02:57 AM
> Subject: Re: [PHP] Re: Call JS Function with PHP Header()?
>
>
> * and then Nick Wilson declared....
> > <!-- <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...?
>
> Ahhhhh... XHTML Strict - Gotta remove the comment tags ;-)
>
> Thanks mate..
>
> -- 
> Nick W
>
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to