xbox hacker Posted March 19, 2007 Share Posted March 19, 2007 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! Link to comment https://forums.phpfreaks.com/topic/43378-php-javascritp-does-not-work-in-ie-please-help/ Share on other sites More sharing options...
per1os Posted March 19, 2007 Share Posted March 19, 2007 <body onLoad="poponload();"> </body> </html> Try that and an FYI this is considered JavaScript help, not PHP. Link to comment https://forums.phpfreaks.com/topic/43378-php-javascritp-does-not-work-in-ie-please-help/#findComment-210661 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.