event click doubleclick html code example Example: double click on element using javascript document.getElementById("something").dblclick();