I tried to put both an ‘onclick’ and an ‘ondblclick’ on an img tag. Problem, JS doesn’t leave me time for the secund click, however fast I click ! It always immediately handles the ‘onclick’ condition. Yet I use double-clicks all the time on my PC without problems.
So that was the first question.
So, as I got nowhere with the ondblclick, I decided to use both left and right click. This time IE understands the difference (in Netscape, it’s no hope, it works a completely different way) and handles correctly both events. But, problem, after the right click has been handled, the context window opens anyway… I don’t want that.
So, that was the secund question.
And now for the summarizing third question:
The real problem is: I want to be able to launch two different actions relative to the same image, be it by click, dblclick, right or left click, or by shooting at the screen with a Smith&Wesson.
What is the right strategy ?