Jump to content

PHP + Javascritp does not work in IE? PLEASE HELP..


xbox hacker

Recommended Posts

OK...i am still very new to PHP! So here is my question, i wrote a php form that calls a include "popup.php"

in the popup.php i use javascript to open a popup window with some php variables. Code is below...

Now the problem is it works GREAT with Firefox, but DOES NOT work in Internet Explorer. In the IE i get a "script error". In IE i do have javascript enabled ... and other site with javascript it works fine. So i am thinking its the mix of php and javascript. Anyone got any ideas on a work around? Or maybe a better way to do what i am trying to do.... Thanx!

 

 

This is the  "popup.php":

 
<html>
<head>
<title></title>
<SCRIPT language="JavaScript">
function poponload()
{
testwindow= window.open ("<?php print $url ?>", "Mywindow","height=400,width=560");
testwindow.moveTo(0,0);
}
</SCRIPT>
</head>

<body onLoad="javascript: poponload()">
</body>
</html>

 

Like i said it works great with Firefox, so....please help!

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.