Jump to content

Javascript Onload Popup(s)


jmc92
 Share

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...