what we want. Sometimes we want to execute a script when a page loads, other times when a user trigger an event. goes in the head section. When you place a script in the head section you will assure that the script is loaded before anyone uses it. <head> <script language="VBScript"> some statements </script> </head> you place a script in the body section it generates the content of the page. <head> </head> <body> <script language="VBScript"> some statements </script> </body> document, so you can have scripts in both the body and the head section. <head> <script language="VBScript"> some statements </script> </head> <body> <script language="VBScript"> some statements </script> </body> You can refer to a variable by name to see its value or to change its value. In VBScript, all variables are of type variant, that can store different types of data. |