Javascript detect a right mouse click? 
Author Message
 Javascript detect a right mouse click?
Is it possible to get Jscript to detect and act differently when
a link is clicked using the right-hand mouse button?

Thanks,
Seajay.

* Sent from RemarQ http://www.*-*-*.com/ The Internet's Discussion Network *
The fastest and easiest way to search and participate in Usenet - Free!



Fri, 22 Nov 2002 03:00:00 GMT  
 Javascript detect a right mouse click?
howdy--

document.body.onmousedown=function(){window.status=event.button;}

its a bitmask thing, and you should get:

1 which is just left down,
2 is a right down
3 is both down
4 is middle down
5 is middle and left down
6 is middle and right
7 is all three

T

Is it possible to get Jscript to detect and act differently when
a link is clicked using the right-hand mouse button?

Thanks,
Seajay.

* Sent from RemarQ http://www.remarq.com The Internet's Discussion Network *
The fastest and easiest way to search and participate in Usenet - Free!



Sat, 23 Nov 2002 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Detecting Right Mouse Clicks

2. Cancelling a Right Mouse Button Click

3. disable mouse right-click

4. Mouse Right Click Event

5. no right click mouse with alert

6. Mouse Right Click Event

7. sendkeys right mouse click...

8. Can you right mouse click on a link

9. Right mouse button click

10. Right Mouse Click

11. pop up menu when right mouse button clicked

12. event--onclick, ondblclick, right mouse button click

 

 
Powered by phpBB® Forum Software