I want pop-up menu not to be displayed, when right clicking in the browser window. Can any one help me?
mahadevan raja
Ranch Hand
Joined: Apr 11, 2001
Posts: 96
posted
0
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:
harivarma mudunuru
Greenhorn
Joined: Sep 07, 2000
Posts: 8
posted
0
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]
Reilly Morris
Ranch Hand
Joined: Sep 11, 2001
Posts: 44
posted
0
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