yolop Posted October 12, 2008 Share Posted October 12, 2008 i want to show popup when someone visit my page so I did that <html> <head> </head> <body onload="myWindow=window.open('http://www.abc.co.il/','popUp1','width=200,height=100') "> </body> </html> OK that show 1 popup but now i want to show 3 diffrent popup whensone visit my page how I do that? thank Quote Link to comment https://forums.phpfreaks.com/topic/128116-help-with-popap-in-onload/ Share on other sites More sharing options...
emehrkay Posted October 12, 2008 Share Posted October 12, 2008 remove the onload from the body tag and put it in the head <script> onload = function(){ //define your spamish popus here }; </script> Quote Link to comment https://forums.phpfreaks.com/topic/128116-help-with-popap-in-onload/#findComment-663497 Share on other sites More sharing options...
yolop Posted October 12, 2008 Author Share Posted October 12, 2008 remove the onload from the body tag and put it in the head <script> onload = function(){ //define your spamish popus here }; </script> how please? will you giv me the full code please? Quote Link to comment https://forums.phpfreaks.com/topic/128116-help-with-popap-in-onload/#findComment-663501 Share on other sites More sharing options...
Maq Posted October 12, 2008 Share Posted October 12, 2008 Just create a javascript function that makes 3 pop ups and call it onload. Quote Link to comment https://forums.phpfreaks.com/topic/128116-help-with-popap-in-onload/#findComment-663573 Share on other sites More sharing options...
yolop Posted October 12, 2008 Author Share Posted October 12, 2008 how I creat the function and i need to open new site every time I call the function how please? Quote Link to comment https://forums.phpfreaks.com/topic/128116-help-with-popap-in-onload/#findComment-663585 Share on other sites More sharing options...
Maq Posted October 12, 2008 Share Posted October 12, 2008 and i need to open new site every time I call the function A new site, I don't understand what that means. Please read this for the pop up tutorial: Javascript Pop up Quote Link to comment https://forums.phpfreaks.com/topic/128116-help-with-popap-in-onload/#findComment-663590 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.