window.open and settimeout

J

John

I would like to use setTimeout and window.open methods to pop up
window every 5 minutes. I can only manage to make the window to pop up
only twice.

function openWindow() {
window.open("popupwindow.htm", "OpenedWindow",
"width=320,height=240, scrollbars=yes,resizable=yes,status=yes");

}
function settime() {
setTimeout("openWindow()", 300 * 1000);
}

So what is the problem that is making the window never to come back
when the user closes the popped window the second time?


Thank you

John
 
M

Michael Winter

I would like to use setTimeout and window.open methods to pop up
window every 5 minutes. I can only manage to make the window to pop up
only twice.

function openWindow() {
window.open("popupwindow.htm", "OpenedWindow",
"width=320,height=240, scrollbars=yes,resizable=yes,status=yes");

}
function settime() {
setTimeout("openWindow()", 300 * 1000);
}

So what is the problem that is making the window never to come back
when the user closes the popped window the second time?

The solution is simple, but first, I would like to know why you would want
to do something like this. It sounds remarkably like pop-up banner
behaviour.

Of course, I don't really care personally: Opera (my browser) blocks that
kind of pop-up. However, I would be concerned for other users, and I won't
endorse something so disruptive.

Mike
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Members online

Forum statistics

Threads
473,982
Messages
2,570,190
Members
46,736
Latest member
zacharyharris

Latest Threads

Top