Using onClick and onDblClick Event Handlers : Hyper Link Event : Event JAVASCRIPT DHTML TUTORIALS


JAVASCRIPT DHTML TUTORIALS » Event » Hyper Link Event »

 

Using onClick and onDblClick Event Handlers



<HTML>
<HEAD>
<TITLE>onClick and onDblClick Event Handlers</TITLE>
<SCRIPT LANGUAGE="JavaScript">
var msg = "";
function showClick() {
    msg = "The element has been clicked. ";
    status = msg;
}
function showDblClick() {
    msg = "The element has been double-clicked.";
    status = msg;
    return false;
}
</SCRIPT>
</HEAD>
<BODY>
<H1>onClick and onDblClick Event Handlers</H1>
<HR>
<A HREF="#" onClick="showClick();return false" 
onDblClick="return showDblClick()">
A sample link.</A>
</BODY>
</HTML>


           
       



-

Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .

Follow Navioo On Twitter

JAVASCRIPT DHTML TUTORIALS

 Navioo Event
» Hyper Link Event