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> Quote Link to comment 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? Quote Link to comment 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. Quote Link to comment 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 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.