| onMouseDownExecutes JavaScript code when a MouseDown event occurs; that is, when the user depresses a mouse button.
SyntaxonMouseDown="handlerText" Parameters
handlerText
| JavaScript code or a call to a JavaScript function. |
Event properties used
type | Indicates the type of event. | target | Indicates the object to which the event was originally sent. | layerX, layerY, pageX, pageY, screenX, screenY | Represent the cursor location at the time the MouseDown event occurred. | which | Represents 1 for a left-mouse-button down and 3 for a right-mouse-button down. | modifiers | Contains the list of modifier keys held down when the MouseDown event occurred. |
DescriptionIf onMouseDown returns false, the default action (entering drag mode, entering selection mode, or arming a link) is canceled. Arming is caused by a MouseDown over a link. When a link is armed it changes color to represent its new state. See alsoFor general information on event handlers, see "General Information about Events". For information about the event object, see event .
onMouseMoveExecutes JavaScript code when a MouseMove event occurs; that is, when the user moves the cursor.
Event handler for | None | Implemented in | Navigator 4.0 |
SyntaxonMouseMove="handlerText" Parameters
handlerText
| JavaScript code or a call to a JavaScript function. |
Event ofBecause mouse movement happens so frequently, by default, onMouseMove is not an event of any object. You must explicitly set it to be associated with a particular object. Event properties used
type | Indicates the type of event. | target | Indicates the object to which the event was originally sent. | layerX, layerY, pageX, pageY, screenX, screenY | Represent the cursor location at the time the MouseMove event occurred. |
DescriptionThe MouseMove event is sent only when a capture of the event is requested by an object (see "Events in Navigator 4.0"). See alsodocument.captureEvents For general information on event handlers, see "General Information about Events". For information about the event object, see event .
onMouseOutExecutes JavaScript code when a MouseOut event occurs; that is, each time the mouse pointer leaves an area (client-side image map) or link from inside that area or link.
Event handler for | Layer , Link | Implemented in | Navigator 3.0 |
SyntaxonMouseOut="handlerText" Parameters
handlerText
| JavaScript code or a call to a JavaScript function. |
DescriptionIf the mouse moves from one area into another in a client-side image map, you'll get onMouseOut for the first area, then onMouseOver for the second.Area objects that use the onMouseOut event handler must include the HREF attribute within the AREA tag.You must return true within the event handler if you want to set the status or defaultStatus properties with onMouseOver . Event properties used
type | Indicates the type of event. | target | Indicates the object to which the event was originally sent. | layerX, layerY, pageX, pageY, screenX, screenY | Represent the cursor location at the time the MouseOut event occurred. |
ExamplesSee the examples for Link . See alsoonMouseOver For general information on event handlers, see "General Information about Events". For information about the event object, see event .
onMouseOverExecutes JavaScript code when a MouseOver event occurs; that is, once each time the mouse pointer moves over an object or area from outside that object or area.
Event handler for | Layer , Link | Implemented in | Navigator 2.0 Navigator 3.0: event handler of Area |
SyntaxonMouseOver="handlerText" Parameters
handlerText
| JavaScript code or a call to a JavaScript function. |
DescriptionIf the mouse moves from one area into another in a client-side image map, you'll get onMouseOut for the first area, then onMouseOver for the second.Area objects that use onMouseOver must include the HREF attribute within the AREA tag.You must return true within the event handler if you want to set the status or defaultStatus properties with onMouseOver . Event properties used
type | Indicates the type of event. | target | Indicates the object to which the event was originally sent. | layerX, layerY, pageX, pageY, screenX, screenY | Represent the cursor location at the time the MouseOver event occurred. |
ExamplesBy default, the HREF value of an anchor displays in the status bar at the bottom of the browser when a user places the mouse pointer over the anchor. In the following example, onMouseOver provides the custom message "Click this if you dare."<A HREF="http://home.netscape.com/" onMouseOver="window.status='Click this if you dare!' return true"> Click me</A> See onClick for an example of using onMouseOver when the A tag's HREF attribute is set dynamically.See also examples for Link . See alsoonMouseOut For general information on event handlers, see "General Information about Events". For information about the event object, see event .
onMouseUpExecutes JavaScript code when a MouseUp event occurs; that is, when the user releases a mouse button.
SyntaxonMouseUp="handlerText" Parameters
handlerText
| JavaScript code or a call to a JavaScript function. |
Event properties used
type | Indicates the type of event. | target | Indicates the object to which the event was originally sent. | layerX, layerY, pageX, pageY, screenX, screenY | Represent the cursor location at the time the MouseUp event occurred. | which | Represents 1 for a left-mouse-button up and 3 for a right-mouse-button up. | modifiers | Contains the list of modifier keys held down when the MouseUp event occurred. |
DescriptionIf onMouseUp returns false, the default action is canceled. For example, if onMouseUp returns false over an armed link, the link is not triggered. Also, if MouseUp occurs over an unarmed link (possibly due to onMouseDown returning false), the link is not triggered. NoteArming is caused by a MouseDown over a link. When a link is armed it changes color to represent its new state. See alsoFor general information on event handlers, see "General Information about Events". For information about the event object, see event . |
| |