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>"; Quote Link to comment 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... Quote Link to comment 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 ??? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.