Wednesday, 4 July 2012

Ex09: Function procedure in VBScript


<!DOCTYPE html>
<html>


<head>
<script type="text/vbscript">
Function myFunction()
 myFunction = "BLUE"
End Function
</script>
</head>


<body>
<script type="text/vbscript">
document.write("My favorite color is " & myFunction())
</script>
<p>A Function procedure can return a result.</p>
</body>


</html>

No comments:

Post a Comment