Technology/Coding Help - Exit Pop

Status
Not open for further replies.
I have a client that needs to know how to implement an exit pop or pop under for their pages so they can pop our deals. We currently do this in-house with some deals, but our CTO is gone for the weekend - can anybody help by providing me a script or code, or something else for my technologically unsavvy self? Thank you.


Ev
 


For an exit pop, try this:

Code:
<SCRIPT LANGUAGE="JavaScript">
<!-- begin exitpop
var exit=true;
function exitpop()
{
if (exit)
open('YOUR-PAGE-URL.html','','toolbar=no,menubar=no,scrollbars=yes,resizable=yes,location=no,height=500,width=800,top=100,left=100');
}
// end exitpop -->
</SCRIPT>
- Place the above between the <head> </head> tags in your page.
- Place onUnload="exitpop()" into the opening <body> tag like so: <body onUnload="exitpop()">
- Change 'your-page-url.html' to point to desired file you want in the popup
- Change height and width as needed
- Change top and left attributes for positioning on screen
- Add an onclick="exit=false" attribute to any link you do NOT want to launch the pop when clicked - example link:

Code:
<a href="whatever-link.html" onclick="exit=false">Your link here</a>
Its pretty basic and you probably need something more complex to get past popup blockers these days.
Anyway, enjoy!
 
Status
Not open for further replies.