balkan7 Posted January 24, 2009 Share Posted January 24, 2009 Strange i used popup in my php code but only work on FF doesn't work on IE. code is: <?php echo "<script type='text/javascript'> function popup(url, title,w,h) { var left = (screen.width/2)-(w/2); var top = (screen.height/2)-(h/2); var targetWin = window.open (url, title, 'toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=yes, resizable=no, copyhistory=no, width='+w+', height='+h+', top='+top+', left='+left); } </script>"; ?> and links code: <?php echo "<a href=\"javascript:void(0);\" onClick=\"popup('watch.php?video=".$video->url."', '".$video->title."', '620', '480');\">TEST</a>"; Link to comment https://forums.phpfreaks.com/topic/142271-popup-work-only-on-ff/ Share on other sites More sharing options...
bobleny Posted January 24, 2009 Share Posted January 24, 2009 There is a reason for that, but I won't mention it here..... Anyways, did you have a question? Personally I think popup windows is nothing more than an irritant, regardless of the intent... Link to comment https://forums.phpfreaks.com/topic/142271-popup-work-only-on-ff/#findComment-745483 Share on other sites More sharing options...
balkan7 Posted January 24, 2009 Author Share Posted January 24, 2009 i dont know what can i say, i cant find solution, have tried many times just popup one video for other i get javascript error ... My question is: i need help for this one, another solution ??? Link to comment https://forums.phpfreaks.com/topic/142271-popup-work-only-on-ff/#findComment-745525 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.