PDA

View Full Version : popup window onload



jkhalbe
Nov 13th, 2004, 06:12 PM
When i load the webpage i automatically want another window to open up (kinda like a pop-up advertisement). How do i do this? can you help?

Thanx

llizard
Nov 13th, 2004, 06:51 PM
When i load the webpage i automatically want another window to open up (kinda like a pop-up advertisement).

Why would you want to subject your visitors to this? If you must have a popup, offer it in the form of a link that can be chosen once the window is opened.

jkhalbe
Nov 13th, 2004, 06:55 PM
just because it is a flash file (song), and i got it working......and its only temporary. I am totally new to creating web pages, and just do it for fun. You can check it if you want

www.jeffhalbe.com

its garbage right now, but i am going to create a flash site for appearance.

glenmac
Nov 13th, 2004, 08:36 PM
This will work

<html>
<head><script>
function newWindow() {
window.open( "http://www.lantzvillecomputers.com.", "_blank" )
}
</script>
</head>
<body onload = "newWindow()">test
</body>
</html>