-
Exit popup code. Anyone?
I need a exit popup code that will stop the visitor from exiting the website and will offer them a free report or some other freebie..anyone has any such free code??
I looked up on net but most of them are either not free or buggy, as in they will show the exit popup even when a visitor clicks on an internal link..
Thx
-
isn't that annoying for your visitors?
-
well, they are already leaving by hitting the close button, why not offer them something to stay back for few seconds ;)
-
If you use the "Web Developer" plugin for FireFox you can view the Javascript code (under Information->View JavaScript) used on a site that you like and copy and paste the code if licensing permits.
-
ya I got one by looking at source code of such a site...but its not free...
-
Finally I got one free exit pop code.. if anyone wants it then here it is:
The below code should be between the <head> and </head>
Code:
<script type='text/javascript'>
<!--
var NoExitPage = false;
function ExitPage() {
if(NoExitPage == false) {
NoExitPage=true;
location.href='http://yourlandingpage.com/';
return"***********************************************\n\n"+
" WAIT BEFORE YOU GO!!\n\n"+
" Exclusive Discount Offer ($20 Value) Today Only!\n\n"+
"Click the [Cancel] Button Right Now To Stay On This Page!\n\n"+
"***********************************************";
}
}
// -->
</script>
also modify the <body> tag to the following:
Code:
<body onBeforeUnload="return ExitPage();">