Click to See Complete Forum and Search --> : Loading a Popup on domain change or Exit
EricKamikaze
02-18-2003, 12:58 PM
I am looking for a way to load a Flash Popup when a user changes the domain, ie: types a new URL into the browser address bar, or exits the site completely. But it will not pop up if the user is navigating within my site. I know there may be some issues with Reload, but I will work that out later.
Thanks for all your help. You are making the Internet a Better Place.
-------Eric
Dan Drillich
02-18-2003, 09:53 PM
Please have a look at the following. It might be the solution for the internal links.
<script>
var newLoc ="";
function workIt() {
// alert(newLoc);
var sub = newLoc.substr(0,17);
if (sub != "http://www.myDomain") {
var new_window = window.open("http://www.iwon.com","html_name","width=200,height=200");
}
}
</script>
<body onunload="workIt()">
<form action="http://www.iwon.com" >
<textarea id="2" name=phone>aaaa</textarea>
<input type="submit">
</form>
<a href="http://www.icq.com" onclick="newLoc='http://www.icq.com'">ICQ</a>
</body>