Sets or retrieves the x-coordinate of the mouse pointer's position relative to the client area of the window, excluding window decorations and scroll bars.
Sets or retrieves the y-coordinate of the mouse pointer's position relative to the client area of the window, excluding window decorations and scroll bars.
Sets or retrieves the y-coordinate, in pixels, of the mouse pointer's position relative to a relatively positioned parent element.
Example
This example shows how to prevent a context menu from appearing by canceling the oncontextmenu event handler.
<SPAN STYLE="width:300; background-color:blue; color:white;" oncontextmenu="return false">
<P>The context menu never displays when you right-click in this box.</P>
</SPAN>
This feature requires Microsoft® Internet Explorer 5 or later. Click the following icon to install the latest version. Then reload this page to view the sample.
Standards Information
There is no public standard that applies to this event.