I have a page which is a mixture of PHP and Javascript, it's not a PHP
problem as it is only printing the Javascript I want out to the browser.
When the page executes, in Internet Explorer the onload popup event is
executed successfully, but in Mozilla Firefox it does nothing at all.
Anyone know what is going on? Below is the script code (carriage return
deliberate to stop word wrap).
Thanks
Dariusz
<HTML>
<BODY onload="PicLoad ()">
<?PHP
// Section to generate the Javascript pop-up for correct
// dimentions of the proposed pop-up.
echo '<script type="text/javascript">'." \n";
echo '<!--'."\n\n";
echo 'function PicLoad()';
echo '{';
echo 'window.open("./01.jpg","Pictur e","width=370,h eight=260,
toolbar=no,menu bar=no,resizeab le=no")';
echo '}';
echo '//-->'."\n";
echo '</script>';
echo "<BR>Successful ly executed PHP script!!!";
?>
</BODY>
</HTML>
problem as it is only printing the Javascript I want out to the browser.
When the page executes, in Internet Explorer the onload popup event is
executed successfully, but in Mozilla Firefox it does nothing at all.
Anyone know what is going on? Below is the script code (carriage return
deliberate to stop word wrap).
Thanks
Dariusz
<HTML>
<BODY onload="PicLoad ()">
<?PHP
// Section to generate the Javascript pop-up for correct
// dimentions of the proposed pop-up.
echo '<script type="text/javascript">'." \n";
echo '<!--'."\n\n";
echo 'function PicLoad()';
echo '{';
echo 'window.open("./01.jpg","Pictur e","width=370,h eight=260,
toolbar=no,menu bar=no,resizeab le=no")';
echo '}';
echo '//-->'."\n";
echo '</script>';
echo "<BR>Successful ly executed PHP script!!!";
?>
</BODY>
</HTML>
Comment