ONCLICK and ONDBLCLICK Issue
-
- Experienced User
- Posts: 100
- Joined: Tue Feb 21, 2012 1:24 pm
- First Name: Robert
- Last Name: Mullis
- Company Name: WRC
- State / Province: Georgia
- Country: United States
- Contact:
ONCLICK and ONDBLCLICK Issue
I have an image with the onclick and ondblclick events defined. The event for onclick works fine when I click on the image. When I double click on the image I encounter a problem. The onclick event runs first and then the ondblclick event runs. Is this supposed to happen or is there a bug?
- David
- Profound Logic Staff Member
- Posts: 690
- Joined: Fri Jan 04, 2008 12:11 pm
- First Name: David
- Last Name: Russo
- Company Name: Profound Logic Software
- Contact:
Re: ONCLICK and ONDBLCLICK Issue
This is normal operation of the web browser. It fires "onclick" event for the first click, and then "ondblclick" for the 2nd one, if received soon enough.
-
- Experienced User
- Posts: 100
- Joined: Tue Feb 21, 2012 1:24 pm
- First Name: Robert
- Last Name: Mullis
- Company Name: WRC
- State / Province: Georgia
- Country: United States
- Contact:
Re: ONCLICK and ONDBLCLICK Issue
Thanks David.
That is what I suspected, but just wanted to verify. I changed my program to not have the onclick and ondblclick events on that image.
That is what I suspected, but just wanted to verify. I changed my program to not have the onclick and ondblclick events on that image.
Who is online
Users browsing this forum: No registered users and 2 guests