Feedback on: irt.org FAQ Knowledge Base Q969
Worth:
Very worth reading
Comments:
just insert the below code above </head> tag and it will work
in Internet Explorer too!
<SCRIPT LANGUAGE="Javascript">
</SCRIPT>
Worth:
Very worth reading
Comments:
Very worth reading but... STILL GOT WAY TO DO RightMouseClick(RMC)!!!!!!!!!!!
(Read slowly!!)
Let me tell you how. I display a Msgbox upon a RMC.
Then I press Enter key and RMC together.
Then I release both together.
Then hor, RMC activated!!!!!!!
People can still click view source!!!!!!!
Help!!!!!!!!!!!!!!!!!
Need to stop RMC!!!!!!!!!!!
Worth:
Very worth reading
Length:
Just right
Technical:
Just right
Comments:
It does not seem to work for IE 5, but works fabulously for Netscape. Is there an update for IE?
Worth:
Very worth reading
Comments:
There is error in that second script that uses activeX component, in function cancelmenu(e), there are 2 closings ( } ) too much, there should be only 3 closings, becouse 1 closing is made after third "if" and second after "else".
Here is it at the way it works:
<html>
<head><title>Something</title>
<script language="JavaScript">
menuon=false;
function cancelmenu(e) {
if (document.all) {
if (event.button == 2) {
menuon=true;
if (popmenu.readyState==4) {
popmenu.RemoveAllItems();
popmenu.AddItem("","","","");
popmenu.Popup (event.x,event.y);
}
else
alert("Please wait. Page Loading...")
}
if (event.button == 1)
if (menuon) {
popmenu.RemoveAllItems();
popmenu.Popup (event.x,event.y);
menuon=false;
}
}
}
document.onmousedown = cancelmenu;
</script>
</head>
<body>
<object id="popmenu" width=0 height=0 classid="CLSID:F5131C24-E56D-11CF-B78A-444553540000" codebase="http://activex.microsoft.com/controls/iptdweb/ikcntrls.cab">
<param name="_Version" value="65536">
<param name="_ExtentX" value="2646">
<param name="_ExtentY" value="1341">
<param name="_StockProps" value="0">
</object>
</body>
</html>
ps. I had to take comments out from <script> definition becouse they hided script so it wouldnt show with this submit.
Worth:
Very worth reading
Length:
Just right
Technical:
Just right
Comments:
IE5 update:
<body oncontextmenu="alert('copyright'); return false"></body>
or
<body oncontextmenu="return false"></body>
to do nothing
Comments:
You should be shot for writing this vile script.
Worth:
Very worth reading
Comments:
How about the "context menu" key on a Windows keyboard... that and the TAB key go around the mouseclick protection