c-o-d-e Posted January 17, 2010 Share Posted January 17, 2010 The following code doesn't create a popup, displaying the page wicaptcha.php It does nothing, whats the problem? <script type="text/javascript"> function popUp(URL) { day = new Date(); id = day.getTime(); eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=500,height=500,left = 390,top = 150');"); } </script> <a href="#" onclick="popUp('/wicaptcha.php');">Whats this?</a> Link to comment https://forums.phpfreaks.com/topic/188736-popup-window-displaying-a-page/ Share on other sites More sharing options...
trq Posted January 17, 2010 Share Posted January 17, 2010 What is the point of the eval call? Link to comment https://forums.phpfreaks.com/topic/188736-popup-window-displaying-a-page/#findComment-996391 Share on other sites More sharing options...
c-o-d-e Posted January 17, 2010 Author Share Posted January 17, 2010 I don't really understand Evals, though that sets the options for the popup, along with the page to be displayed. Link to comment https://forums.phpfreaks.com/topic/188736-popup-window-displaying-a-page/#findComment-996612 Share on other sites More sharing options...
c-o-d-e Posted January 17, 2010 Author Share Posted January 17, 2010 I changed it to window.open(URL,id,"toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=500,height=500,left = 390,top = 150"); Although on firefox, it is still resizable. How can this be prevented. Thanks Link to comment https://forums.phpfreaks.com/topic/188736-popup-window-displaying-a-page/#findComment-996630 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.