I am reading someone Else’s javascript code which is listed below
window.onload = function(){
// Listen to the double click event.
if ( window.addEventListener ) {
document.body.addEventListener( 'dblclick', onDoubleClick, false );
}
else if ( window.attachEvent ) {
/* attachEvent is Microsoft and addEventListener is W3C */
document.body.attachEvent( 'ondblclick', onDoubleClick );
}
};
The name of the event is “dblclick” and the event (handling) property is called “ondblclick”. even in IE the event itself is named “dblclick” (ref.)