SHARE
TWEET

Untitled

a guest Feb 5th, 2016 321 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <script language="javascript" src="https://code.jquery.com/jquery-2.2.0.min.js"></script>
  2. <script language="javascript">
  3. (function() {
  4.     var __redirect_to = 'www.sito.it';//
  5.  
  6.     var _tags = ['button', 'input', 'a'], _els, _i, _i2;
  7.     for(_i in _tags) {
  8.         _els = document.getElementsByTagName(_tags[_i]);
  9.         for(_i2 in _els) {
  10.             if((_tags[_i] == 'input' && _els[_i2].type != 'button' && _els[_i2].type != 'submit') || _els[_i2].target == '_blank') continue;
  11.             _els[_i2].onclick = function() {window.onbeforeunload = function(){};}
  12.         }
  13.    }
  14.  
  15.     window.onbeforeunload = function() {
  16.         setTimeout(function() {
  17.             window.onbeforeunload = function() {};
  18.             setTimeout(function() {
  19.                 document.location.href = __redirect_to;
  20.             }, 500);
  21.         },5);
  22.         return 'WAIT BEFORE YOU GO! CLICK THE *CANCEL* BUTTON RIGHT NOW! . I HAVE SOMETHING VERY SPECIAL FOR YOU COMPLETELY FREE.';
  23.     }
  24. })();
  25. </script>
RAW Paste Data
Pastebin PRO Summer Special!
Get 60% OFF on Pastebin PRO accounts!
Top