double click on element using javascript

JavaScript
document.getElementById("something").dblclick(); 

Source

Also in JavaScript: