Re: Javascript in php
| From: | Juergen Hall | Date: | Thu, 21 Dec 2000 11:57:04 +0000 |
| Subject: | Re: Javascript in php | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-31413@lists.php.net to get a copy of this message | ||
>
> can someone point me to documentation on javascript in php
>
folks, these are two completely different topics.
JS runs (if activated) on the client side (browser).
All you can do is "echo"ing JavaScript code :
i.e. the code below will open an extra window.
echo "<script language=\"JavaScript\">";
echo "preview =
window.open('data/$table/preview.html','pre','width=550,height=450,s
crollbars=yes,location=no,directories=no,status=no,menubar=no,to
olbar=no,resizable=yes,left=50,top=50');";
echo "</script>";
jyrgen