Lee-Bartlett Posted October 21, 2008 Share Posted October 21, 2008 everytime i look at google gives like 4 differnt ways to do it and im not sure the best way to do it. anyone? Quote Link to comment https://forums.phpfreaks.com/topic/129484-simple-popup-window/ Share on other sites More sharing options...
cuboidgraphix Posted October 21, 2008 Share Posted October 21, 2008 I'm not sure what you mean. But if you want the easiest way to get a pop up ... it's by simply putting a target in the link. eg: <a href="www.google.com" target="_blank">Click here for google</a> Quote Link to comment https://forums.phpfreaks.com/topic/129484-simple-popup-window/#findComment-671282 Share on other sites More sharing options...
Lee-Bartlett Posted October 21, 2008 Author Share Posted October 21, 2008 I want a button when clicked to open a new page, i was looking at somthing like <script language=JavaScript> <!-- window.open("/templates/weekend.html", "w3adIAYJAAII", "width=650,height=400"); //--> </script> but wasnt sure how to get the to be on click on a button in a form. Quote Link to comment https://forums.phpfreaks.com/topic/129484-simple-popup-window/#findComment-671287 Share on other sites More sharing options...
cuboidgraphix Posted October 21, 2008 Share Posted October 21, 2008 How about trying this... <FORM> <INPUT type="button" value="New Window!" onClick="window.open('http://www.google.com','mywindow','width=600,height=400,toolbar=yes,location=yes,directories=yes,status=yes,menubar=yes,scrollbars=yes,copyhistory=yes,resizable=yes')"> </FORM> So you could edit the elements in the pop up window. Quote Link to comment https://forums.phpfreaks.com/topic/129484-simple-popup-window/#findComment-671296 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.