Jump to content

Javascript Onload Popup(s)


jmc92

Recommended Posts

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

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...