PDA

View Full Version : onRightClick



McSak
01-18-2007, 10:58 AM
I want to have the value of a field disappear on right click, but not on left click.

Is this possible?

Thanks.

shachi
01-18-2007, 03:02 PM
Surely it is.

Twey
01-18-2007, 06:28 PM
Warning: the OP is a spambot.

12345c
01-19-2007, 01:02 AM
It is possible in IE and FF, but default setting of Opera blocks any control of right button.


<body onmousedown=alert(event.button) style=height:900px>
Press any button of mouse in various browsers.

Twey
01-19-2007, 01:12 AM
It doesn't stop one detecting the event, just doing things that would disrupt the context menu.

It's irrelevant, though, since this isn't a real question: it was copied here from Webmaster World just to promote the links in the bot's signature.