Call function in hyper link : Hyper Link : HTML JAVASCRIPT DHTML TUTORIALS


JAVASCRIPT DHTML TUTORIALS » HTML » Hyper Link »

 

Call function in hyper link



<html>
<head>
<script language="JavaScript">
<!--
  function myFunction() {
    alert("Hello World!");
  }
//-->
</script>
</head>
<body>
<a href="javascript:myFunction()">Click me</a>
</body>
</html>

           
       



-

1 Comments

Zamshed Farhan

Thursday 16th of September 2010

Nice. I have used like this.

Leave a Comment / Note


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

Follow Navioo On Twitter

JAVASCRIPT DHTML TUTORIALS

 Navioo HTML
» Hyper Link