Hi, I found an exit popup script, but it pops up when clicking a link within my own site. Does anyone know of a script that will only pop when the next site is visited, or the window is closed? Thanks, Matt
You coud add script to the 'onbeforeunload' event like this: <body onbeforeunload="window.open('http://www.yahoo.com');"> This would fire whenever the browser leaves the current page or the browser is closed. It's still subject to the same pop-up blockers as any other pop-up window, but sometimes it's harder to notice that it's being blocked sometimes, especially if you are closing the browser all together. Another fun one if you really want to annoy...er I mean keep peoples attention, is the onblur event. You can use it the same way but it fires any time that your browser loses focus to another window or the desktop. It can be implemented the same way: <body onblur="window.open('http://www.yahoo.com');">