Latest web development tutorials

HTML onmouseup event properties

HTML Event Attributes HTML Event Attributes

Examples

Run the script when the mouse button is released:

<p onmouseup="mouseUp()">Click the text!</p>

try it"

Browser Support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

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):

  1. onmousedown
  2. onmouseup
  3. onclick

Onmouseup events related to the event trigger sequence (right mouse button):

  1. onmousedown
  2. onmouseup
  3. 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 HTML Event Attributes