Log in

View Full Version : Double click / single click


Revenga
01-19-2013, 01:39 AM
Hi,

Let's say I have Link-A that I want to redirect you to Link-B if you single-click on it. But if you double-click Link-A, it will redirect you to Link-C.

Is there any possible way to set this up?

- Revenga

kh99
01-19-2013, 11:39 AM
You'd have to use javascript, I think. There are 'click' and 'dblclick' events you can specify actions for, but it seems like you activate the click event even if you're in the middle of a double click, so you can't just use a simple function for each event. Here's a link to a stackoverflow page where someone asked about this: http://stackoverflow.com/questions/6330431/jquery-bind-double-click-and-single-click-separately but the answer uses jquery.

Revenga
01-19-2013, 02:48 PM
Alright. Thanks.

- Revenga