Saturday, 15 February 2014

How to create a Function in JavaScript

<html>
<head>
<title>JavaScript Training</title>
</head>
<body>
     
<script type="text/javascript">

 function demo()      // Create Function
{
 alert("Hello World !!");
}

demo();     //Calling Function

</script>
</body>
</html>

0 comments:

Post a Comment

Followers