Wednesday, 4 July 2012

Ex03: Functions in VBScript

<!DOCTYPE html>
<html>
<head>
<script type="text/vbscript">
function myFunction()
alert("Hello World!")
end function
</script>
</head>


<body onload="myFunction()">


<p>We usually use the head section for functions (to be sure that the functions are loaded before they are called).</p>


</body>
</html>

No comments:

Post a Comment