View Full Version : Need a script...
Royaltee_Gee!
07-31-2001, 05:47 AM
Hey guys im looking for a javascript that launches an exit pop only when the X or back button is pushed...
not when someone clicks a link on the site.......
Anyone know of any? or lead me in the rite direction :
Thanks Alot.
Shovel
07-31-2001, 06:28 AM
on any links that you do not want the console to pop you should insert onClick="exit=false" for example
<a href="page.html" onclick="exit=false">
Royaltee_Gee!
07-31-2001, 06:31 AM
thats what I thought..
Do i have to put any tag into the body?
drumsicle
07-31-2001, 06:36 AM
No. the exit will already be in the body tag such as <body onunload="exit">
Royaltee_Gee!
07-31-2001, 06:39 AM
Correct...
Thanks Alot Bro..
Ya ever need anything msg me: 20962999
drumsicle
07-31-2001, 06:42 AM
In case you're not sure how the console goes
<html>
<script language="JavaScript">
function exit(){ window.open('http://the- page-you-want');}
</script>
<head>
</head>
<body....
That's one way to do it anyway.
vBulletin® v3.7.3, Copyright ©2000-2012, Jelsoft Enterprises Ltd.