Hosting Solutions
mobile_logo Table of Contents
seal_frontseal_back

dblclick

The 'dblclick' event fires when the target object is quickly double clicked.

Quick Syntaxelement.addEventListener("dblclick", handlerFunction);
<script> function addEvents(){ var div1 = document.getElementById('div1'); div1.addEventListener("dblclick", dblClickHandler); } function dblClickHandler(event){ alert("You double clicked "+event.target.id); } window.addEventListener("load", addEvents); </script> <div id="div1">Double Click Me!</div>

See Event Handling for more related information.

JavaScript

Events

clickdblclick