Latest web development tutorials

HTML ondblclick event properties

HTML Event Attributes HTML Event Attributes

Examples

Run the script when the mouse double-click

<button ondblclick="copyText()">复制文本</button>

try it"

Browser Support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

All major browsers support ondblclick event attributes


Definition and Usage

ondblclick property triggered by double-clicking on the element.

Note: ondblclick property can not be used for the following functions: <base>, <bdo> , <br>, <head>, <html>, <iframe>, <meta>, <param>, <script>, <style>, or <title>.


Differences between HTML 4.01 and HTML5

no.


grammar

<elementondblclick=" script ">

Property Value

描述
script 规定该ondblclick事件触发时执行的脚本。


HTML Event Attributes HTML Event Attributes