Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var show=true;function showWindow(){
- if(show)return "Оставайтесь на нашем сайте";}
- $('a,input[type="submit"]').click(function(){show = false;});
- window.onbeforeunload=showWindow;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement