(function () {var doc = document, UA = Navigator.userAgent.toLowerCase (), check = function (r) {return R.T EST (UA); }, Isopera = Check (/opera/), ischrome = Check (/chrome/), Iswebkit = Check (/webkit/), Issafari =!ischrome & ;& Check (/safari/), isSafari2 = Issafari && Check (/applewebkit\/4/), isSafari3 = Issafari && che CK (/version\/3/), IsSafari4 = Issafari && Check (/version\/4/), Isie =!isopera && Check (/msie/), isIE7 = Isie && check (/msie 7/), isIE8 = Isie && check (/msie 8/), isIE9 = Isie && Check (/msi e 9/), isIE10 = Isie && check (/msie 10/), isIE11 = Isie && check (/msie 11/), isIE6 = Isie &&A MP,!isie7 &&!isie8 &&!isie9 &&!isie10 &&!isie11, Isgecko =!iswebkit && Ch Eck (/gecko/), IsGecko2 = Isgecko && Check (/rv:1\.8/), IsGecko3 = Isgecko && check (/rv:1\.9/); function PrevenTKey (e) {var ev = e | | window.event,//Get the Event object obj = Ev.target | | ev.srcelement,//get the events source T = Obj.type | | o Bj.getattribute (' type '), ReadOnly = obj.readonly| | Obj.getattribute (' readonly '), Code = ev.keycode| | ev.which| | Ev.charcode,charcode = String.fromCharCode (code). toLowerCase ();//Gets Event source control type, control read-only property, keyboard value if (code = = 8 && T! = "PA ssWOrd "&& t! =" text "&& t! =" textarea ") | | (readonly&& (t = = "password" | | t = "text" | | t = "TEXTAREA"))) {//Except for read-only input box, disable back key return false;} if (((Isopera | | isgecko)? ev.which==0:true) && (code = = | | code = = 122| | code = = 123 | | (Ev.shiftkey && Code = = 121)) | | ((((Isopera | | isgecko) ev.which!=0:true) &&ev.ctrlkey && (charcode = = ' a ' | | charcode = = ' s '))) {//Mask F5,f11,f12,shift+f10,ctrl+a,ctrl+s if (isie) ev.keycode = 0; ev.returnvalue = false; return false;} }; if (Isopera | | isgecko) doc.onkeypress = Preventkey; else if (Isie | | ischrome | | issafari) doc.onkeydown = Preventkey; if (ISIE) Document.onselectstart=function () {return false;}; Doc.oncontextmenu = function () {if (window.event) {window.event.cancelBubble = true; window.event.returnvalue=false;} return false; }; Try{window.history.forward (1);} catch (e) {}}) ();
JS Source Collection