View Full Version : Exit page popup
ronhollin
May 28th, 2003, 01:14 PM
I'm looking to implement onto my website a popup window that will be generated ONLY when a visitor leaves my site. I'd like this popup to ask a couple of questions. Anyone know of this type of script that is free out on the web? Hopefully something easy.
AlienCode
Sep 8th, 2003, 06:15 AM
Hey ronHollin,
The popup is quite easy. What you need to do is add code like this.
<body onUnload="javascript:window.open('http://www.yahoo.com','yahoo', ' menubar,resizable,dependent,status, width=300,height=200,left=500,top=10')" >
I haven't had time to test it but you may also want to look at http://www.codeave.com/javascript/code.asp?u_log=131
Thats like a little wizard to help you make your script. If you are looking for a script to help you with you ask your questions have a look at www.scriptlocker.com or http://www.scriptarchive.com/
Hope this helps
erika
Sep 21st, 2003, 12:16 AM
You can also do in this way:
------------------------- Start of index.html ----------------------------
<html>
<head>
<script language="javascript">
function leaveSite()
{
leaveWin = window.open("http://www.abc.com/leave.html","leaveWin","width=700,height=400,top=100,left=100,resizable=yes,scrollbars=yes,menubar=yes,toolbar=yes,status=ye s,location=yes")
}
</script>
</head>
<body onUnLoad="leaveSite()">
This is my website
</body>
</html>
---------------------End of index.html--------------------
-------------------- Start of leave.html -----------------
<html>
<head>
<script language="javascript">
name = prompt("Please Enter your Name ?")
// and so you can write more questions over here !
</script>
</head>
</html>
-------------------- End of leave.html -----------------
Hope it work for you, if not please tell me !
Panther2004
Mar 11th, 2004, 10:25 AM
I use Firewall so I will not see it anyway. What script should you use then?:D
Powered by vBulletin® Version 4.2.0 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.