Forum Moderators: open

Message Too Old, No Replies

Requiring a double click

         

bguard4u

3:00 pm on Sep 24, 2004 (gmt 0)

10+ Year Member



I am trying to make an interactive tutorial on windows XP and coding it in HTML. I want it to match windows as close as possible but am having trouble finding how to control the mouse click requirements. I am using graphics as links to other pages and some of them need to be double clicked. I have found NO reference to coding a double click in html. Can anyone help?

benihana

3:04 pm on Sep 24, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



i would have thought you could do this in javascript (nb. my knowledge of javascript is rudimentary at best)

maybe something along the lines of onClick increment a variable and if it = 2 then perform the action.

check the javascript forum [webmasterworld.com]for people who know what they are on about :)

good luck

welcome to WebmasterWorld!

encyclo

3:11 pm on Sep 24, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Welcome to WebmasterWorld [webmasterworld.com], bguard4u.

You need to use the javascript

ondblclick
. For example:

<a href="#" ondblclick="doSomething();return false;"><img src="image.jpg" alt="whatever"></a>

You will obviously need to specify the action you require in the Javascript.

bguard4u

3:53 pm on Sep 24, 2004 (gmt 0)

10+ Year Member



thanks.....was hoping I could avoid using javascript....oh well

Lord Majestic

3:56 pm on Sep 24, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I am using graphics as links to other pages and some of them need to be double clicked.

Double clicking was identified by Microsoft as one of the hardest things for a fair few people to do - this is why they tried to get people to click once on many things ever since Windows 98 Active Desktop (or close name to this).

People are used to single clicks in HTML world - its best to keep it this way.