Welcome to WebmasterWorld Guest from 54.145.173.36

Forum Moderators: open

Message Too Old, No Replies

open new windows with onload ()

   
7:02 am on Mar 18, 2013 (gmt 0)

5+ Year Member



I am having a problem getting new windows opened wnen triggered by onload ()...using

<head><script>
function open_win()
{
window.open("http://www.google.com");
window.open("http://www.bing.com");
}
</script>
</head>
<body onload="open_win()">
<input type="button" value="Open Windows" onclick="open_win()">
</body>


The button works ok to open the two windows, but I can't get onload() in <body> to do the same thing. Am I missing something obvious?

Thanks!
3:15 am on Mar 19, 2013 (gmt 0)

WebmasterWorld Senior Member 5+ Year Member



PopUp blocker may be blocking unsolicited window openings ?