Double Click HREF

[Total: 0    Average: 0/5]

Double click on href link to do some action.

Body Code:

<script>
function goNow()
{
// to have the double click goto the new url - 
// just comment out the alert and uncomment hte
// next line.
alert("You have doubled clicked.");
//document.location="http://www.js-examples.com/";
}
</script>
<a href="#" ondblclick="goNow()">double click me</A> 

Times Viewed: 1

Leave a Reply

Your email address will not be published. Required fields are marked *