jmc92 Posted June 30, 2009 Share Posted June 30, 2009 Ok I need to make 3 js popups come up on my site onloadAnd I need it to work on netscape 4 (sony psp)Can anyone post the code needed?thanks Link to comment Share on other sites More sharing options...
Ingolme Posted June 30, 2009 Share Posted June 30, 2009 There are explanations about popups in the W3Schools Javascript tutorial. Link to comment Share on other sites More sharing options...
jmc92 Posted June 30, 2009 Author Share Posted June 30, 2009 There are explanations about popups in the W3Schools Javascript tutorial.Yesbut its not giving me the info im looking for Link to comment Share on other sites More sharing options...
Ingolme Posted June 30, 2009 Share Posted June 30, 2009 Surely the tutorials tell you enough to do this: window.onload = function() { window.open('file1.html') window.open('file2.html') window.open('file3.html')} I do not know how the PSP's browser works so I can't provide detailed information.A lot of browsers do not permit popup windows to be activated with the load event. Link to comment Share on other sites More sharing options...
jmc92 Posted June 30, 2009 Author Share Posted June 30, 2009 Will that work in the same way as <body onload=java script: alert('a popup')> Link to comment Share on other sites More sharing options...
Ingolme Posted June 30, 2009 Share Posted June 30, 2009 Will that work in the same way as <body onload=java script: alert('a popup')>Oh, an alert box.window.onload = function() { alert("message1"); alert("message2"); alert("message3");} Your code has mistakes. First of all, the attribute value should be surrounded by quotation marks, secondly the event attributes don't require javascript: Link to comment Share on other sites More sharing options...
jmc92 Posted July 1, 2009 Author Share Posted July 1, 2009 I expected as much being rusty at js and typing with an psp :)Wow the code works on everything thanks Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.