Quick References
ADO
ASP
CSS2
HTML
JavaScript
Jet SQL
VBScript
WML
WMLScript
WSH
XHTML
XML DOM
XSLT
Features
Knowledge Base
Tutorials
Partners
ZVON.ORG
XML
Planet Source Code
VisualBuilder
Web Design
Your HTML Source
XML/XSLT Forums
ASPAlliance
Scripts
Programmers Heaven
Tek-Tips Forums
Developer Fusion
Code Project
onmousedown attribute
onmousemove attribute
onmouseout attribute
onmouseover attribute
CORE ATTRIBUTE: onmouseup
onmouseup="action"
Available in versions: 4.0
HTML 4.0 tag compatibility: All tags except
applet, base, basefront, bdo, br, font, frame, frameset, head, html, iframe, isindex, meta, param, script, style, title
The
onmouseup
core attribute is an event handler that is associated with the releasing up portion of a click of the mouse while inside a selected HTML tag (element). In other words, the mouse up event occurred while the HTML element was in focus. Every time you release the mouse up, while in the element, the script code of the
onmouseup
is executed. This script can also call functions or subroutines which contain code that you want to run when this event occurs.
The four other similar core attributes are:
onmousedown, onmousemove, onmouseover,
and
onmouseout
.
In this example, simply place the mouse inside the
button
element, click down, then release up. As soon as you release up, an alert appears with a message.
Code:
<input type="button" onmouseup="JavaScript
:
alert( 'onmouseup event' )" value="Click And Release The Mouse While Inside This Button!">
Output:
Copyright 1999-2005 by Infinite Software Solutions, Inc. All rights reserved.
Trademark Information