Everytime the link is clicked the value of variable Count is increased by one which in turn determines which function to run. The response time of the link is controlled by the setTimeout method and may have to be lengthened depending on the total number of clicks. To see this example, click the below link once, twoce or three times. Each will give you a different alert. You can, of course, set the clicks to do any function.
Example Link
Close This Window