how to use double click and single click to same button js code example Example: double click on element using javascript document.getElementById("something").dblclick();