I want pop-up menu not to be displayed, when right clicking in the browser window. Can any one help me?
Joined: Apr 11, 2001
hey, u shud write a onmousedown event on the body tag,and check in the function whether the event.button==2(this is the numeric equivalent of the right click for a 2 button mouse),if u have any doubt then prompt the event.button in the function and find out the equivalent of the right click,then proceed further.any more doubts,contact me.
In IE5 and above just add the following to your BODY:
Joined: Sep 07, 2000
Hi Bodie, Thank u for the information. U are great. It's working fine.
Originally posted by Bodie Minster: [B]In IE5 and above just add the following to your BODY: [/B]
Joined: Sep 11, 2001
Hi folks... The oncontextmenu is genius! I wrote code which used the onClick method and prompted an alert, but this one is far more authoritative. That being added, how do I now restrict viewrs from my source code through the View >> Source menu? This one would be really nice to have. Reilly