Thursday, February 23, 2012

Function in VBScript language

VB script function is very similar with VB and JavaScript function. The function will call when the form will load into browser window.

<head runat="server">
    <title>Untitled Page</title>
    <script type="text/vbscript">
Function greeting()
If i < 10 Then
  document.write("Good morning!")
  document.write("Have a nice day!")
End If
End Function
<body onload="greeting()">
    <form id="form1" runat="server">

1 comment: