Easily build a great vocabulary without studying! Now on the App Store!
Click here for more info about the app

Double Click Event Using Prototype Javascript Framework


Super simple to get double click "desktop" like functionality out of Prototype! For some reason, googling it doesn't yield many useful results. http://www.google.com/#hl=en&q=double+click+in+prototype+javascript&aq=f&oq=&aqi=&fp=peEfEjG9pWY :(

Anyway, here is the code

    document.observe('dblclick', function(){
        alert("Hello World");

Tagged w/ #double click #event #javascript #prototypeprogramming