Event.MOUSEUP

JavaScript 1.2+, JScript 3.0+ Nav4+, IE 4+ Syntax

Event.MOUSEUP

Description

The MOUSEUP property of the Event object is used by button objects, documents, and links to indicate when a mouse button is released.

Example

Listing 7.233 shows how the onMouseUp event handler is used to determine when the mouse button is released after being pressed. The user clicks the button and, when the mouse button is released, a message is displayed indicating the action.

Listing 7.233 Accessing the MOUSEUP Property
 <html> <head> <title>Example of Event.MOUSEUP</title> </head> <body> <form> This example demonstrates the MOUSEUP event. When you click the button and let the mouse up, an alert message is displayed indicating that the event ...

Get Pure JavaScript now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.