Saturday, January 11, 2014

Using javascript code between the head tag of webpage.

<html> 
<head> 
    <script type="text/javascript"> 
    function msg()
    { 
        alert("Hello CandyFry"); 
    }
    </script> 
</head> 
<body> 
    <p>Welcome to Javascript</p> 
    <form> 
        <input type="button" value="click" onclick="msg()"/> 
    </form> 
</body> 
</html> 

No comments:

Post a Comment