Pages

Sunday, 25 August 2013

Stay on Page or Leave this page exit popup


Stay on Page or Leave this page exit popup

Install "Stay on page" exit popup on blogger

1. Go to blogger dashboard --> Template --> Edit html.

2. Find(Ctrl+F) for </head> tag and place the following peace of code just above it.

 

<script src='http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js' type='text/javascript'/>
<script type='text/javascript'>
function PopIt() { return &quot;Are you sure you want to leave?&quot;; }
function UnPopIt() { /* nothing to return */ }

$(document).ready(function() {
window.onbeforeunload = PopIt;
$(&quot;a&quot;).click(function(){ window.onbeforeunload = UnPopIt; });
});
</script>

Replace Are you sure you want to leave? with your desired words.

3. Save the Template.

Not only the blogger users, but also anyone can use this script on their blogs/sites. Kindly wait till your site completes loading and then you will notice this stay on page exit popup once after you try to exit from the site. The live demo of this can be found on my blog, just try it out and just don't jump out

Stay on Page or Leave this page exit popup

Install "Stay on page" exit popup on blogger
1. Go to blogger dashboard --> Template --> Edit html.
2. Find(Ctrl+F) for </head> tag and place the following peace of code just above it.

<script src='http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js' type='text/javascript'/>
<script type='text/javascript'>
function PopIt() { return &quot;Are you sure you want to leave?&quot;; }
function UnPopIt() { /* nothing to return */ }
$(document).ready(function() {
window.onbeforeunload = PopIt;
$(&quot;a&quot;).click(function(){ window.onbeforeunload = UnPopIt; });
});
</script>

Replace Are you sure you want to leave? with your desired words.
3. Save the Template.
Not only the blogger users, but also anyone can use this script on their blogs/sites. Kindly wait till your site completes loading and then you will notice this stay on page exit popup once after you try to exit from the site. The live demo of this can be found on my blog, just try it out and just don't jump out :)
- See more at: http://3wsolution.blogspot.in/2013/01/stay-on-page-exit-popup-using-jquery.html#sthash.0ukqsyx2.dpuf

Stay on Page or Leave this page exit popup

Install "Stay on page" exit popup on blogger
1. Go to blogger dashboard --> Template --> Edit html.
2. Find(Ctrl+F) for </head> tag and place the following peace of code just above it.

<script src='http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js' type='text/javascript'/>
<script type='text/javascript'>
function PopIt() { return &quot;Are you sure you want to leave?&quot;; }
function UnPopIt() { /* nothing to return */ }
$(document).ready(function() {
window.onbeforeunload = PopIt;
$(&quot;a&quot;).click(function(){ window.onbeforeunload = UnPopIt; });
});
</script>

Replace Are you sure you want to leave? with your desired words.
3. Save the Template.
Not only the blogger users, but also anyone can use this script on their blogs/sites. Kindly wait till your site completes loading and then you will notice this stay on page exit popup once after you try to exit from the site. The live demo of this can be found on my blog, just try it out and just don't jump out :)
- See more at: http://3wsolution.blogspot.in/2013/01/stay-on-page-exit-popup-using-jquery.html#sthash.0ukqsyx2.dpuf

Stay on Page or Leave this page exit popup

Install "Stay on page" exit popup on blogger
1. Go to blogger dashboard --> Template --> Edit html.
2. Find(Ctrl+F) for </head> tag and place the following peace of code just above it.

<script src='http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js' type='text/javascript'/>
<script type='text/javascript'>
function PopIt() { return &quot;Are you sure you want to leave?&quot;; }
function UnPopIt() { /* nothing to return */ }
$(document).ready(function() {
window.onbeforeunload = PopIt;
$(&quot;a&quot;).click(function(){ window.onbeforeunload = UnPopIt; });
});
</script>

Replace Are you sure you want to leave? with your desired words.
3. Save the Template.
Not only the blogger users, but also anyone can use this script on their blogs/sites. Kindly wait till your site completes loading and then you will notice this stay on page exit popup once after you try to exit from the site. The live demo of this can be found on my blog, just try it out and just don't jump out :)
- See more at: http://3wsolution.blogspot.in/2013/01/stay-on-page-exit-popup-using-jquery.html#sthash.0ukqsyx2.dpuf

Stay on Page or Leave this page exit popup

Install "Stay on page" exit popup on blogger
1. Go to blogger dashboard --> Template --> Edit html.
2. Find(Ctrl+F) for </head> tag and place the following peace of code just above it.

<script src='http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js' type='text/javascript'/>
<script type='text/javascript'>
function PopIt() { return &quot;Are you sure you want to leave?&quot;; }
function UnPopIt() { /* nothing to return */ }
$(document).ready(function() {
window.onbeforeunload = PopIt;
$(&quot;a&quot;).click(function(){ window.onbeforeunload = UnPopIt; });
});
</script>

Replace Are you sure you want to leave? with your desired words.
3. Save the Template.
Not only the blogger users, but also anyone can use this script on their blogs/sites. Kindly wait till your site completes loading and then you will notice this stay on page exit popup once after you try to exit from the site. The live demo of this can be found on my blog, just try it out and just don't jump out :)
- See more at: http://3wsolution.blogspot.in/2013/01/stay-on-page-exit-popup-using-jquery.html#sthash.0ukqsyx2.dpuf

3 comments:

Unknown said...

Thanks man, save my life. lol.... I've been searching for this and helps me a lot. great information man. I add this code to my blog.

Anonymous said...

Great man!
Thank you so much!

Unknown said...

How to redirect people to another URL ?

Post a Comment