Meaningless Drivel is fun!
The moose likes HTML, CSS and JavaScript and the fly likes problem in applying onclick and ondblclick for a same element Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "problem in applying onclick and ondblclick for a same element" Watch "problem in applying onclick and ondblclick for a same element" New topic
Author

problem in applying onclick and ondblclick for a same element

yuvaraj KumarAmudhan
Ranch Hand

Joined: Aug 22, 2009
Posts: 110
Is there anyway to apply the onclick and ondblclick events for the same button?

Thanks
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15385
    
    6
Use, but the onclick event will always fire so you need to build logic into it to wait to see if the dblclick event fires. Use flags and setTimeout.

Eric
 
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: problem in applying onclick and ondblclick for a same element
 
It's not a secret anymore!