Saturday, 18 December 2010

test


PopUpURL = "The right click options are disabled for this window";
isIE=document.all;
isNN=!document.all&&document.getElementById;
isN4=document.layers;
if (isIEisNN)
{
document.oncontextmenu=checkV;
}
else
{
document.captureEvents(Event.MOUSEDOWN Event.MOUSEUP); document.onmousedown=checkV;
}
function checkV(e)
{
if (isN4)
{
if (e.which==2 or e.which==3)
{
dPUW=alert(PopUpURL);
return false;
}
}
else
{
dPUW=alert(PopUpURL);
return false;
}
}

No comments:

Post a Comment