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? 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> 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. 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. Link to comment https://forums.phpfreaks.com/topic/129484-simple-popup-window/#findComment-671296 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.