HTML onmouseup event properties
Examples
Run the script when the mouse button is released:
<p onmouseup="mouseUp()">Click the text!</p>
try it"
Browser Support
All major browsers support onmouseup event attributes
Definition and Usage
onmouseup property is triggered when the user releases the mouse button.
Tip: onmouseup events related to the event trigger sequence (left / middle mouse button):
- onmousedown
- onmouseup
- onclick
Onmouseup events related to the event trigger sequence (right mouse button):
- onmousedown
- onmouseup
- oncontextmenu
Note: onmouseup property can not be used in the following elements: <base>, <bdo> , <br>, <head>, <html>, <iframe>, <meta>, <param>, <script>, <style>, or <title>.
Differences between HTML 4.01 and HTML5
no.
grammar
<elementonmouseup=" script ">
Property Value
值 | 描述 |
---|---|
script | 规定该onmouseup事件触发时执行的脚本。 |
HTML Event Attributes