Answer Posted / prashant ramkishan muttepawar
syntax :: alert("You pressed button: " + event.button)
Return Value ::A Number, representing which mouse button that was pressed when the mouse event occured.
Possible values:
0 : Left mouse button
1 : Wheel button or middle button (if present)
2 : Right mouse button
Note: Internet Explorer 8 and earlier has different return values:
1 : Left mouse button
2 : Right mouse button
4 : Wheel button or middle button (if present)
Note: For a left-hand configured mouse, the return values are reversed
Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
how to pass data between pages using Cookies
how to create an anonymous function
Create a ViewState Property?
Reading which Non-Character Key was pressed
How to block double clicks
code to detect availability of cookies
how to create Expandable and Collapsible Menus
how to create a Draggable element
code to set the main window's size
how to pass data between pages using Frames
program to bring a window to the front
communication between main window and new windows
code to create a new window
Code to Block submission of form by pressing Enter Key
code to images to rollover