Jump to content

Popup work only on FF


balkan7

Recommended Posts

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

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.