...............................................................................................................................................
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 "Are you sure you want to leave?"; }
function UnPopIt() { /* nothing to return */ }
$(document).ready(function() {
window.onbeforeunload = PopIt;
$("a").click(function(){ window.onbeforeunload = UnPopIt; });
});
</script>
- Replace Are you sure you want to leave? with your desired words.
3. Save the Template.
Post a Comment