create double click inside method js code example Example: double click on element using javascript document.getElementById("something").dblclick();