Pages

Wednesday, June 27, 2012

VB Basics

®  The HTML <script> tag is used to insert a VBScript into an HTML page.
®  VBScript code is written within paired SCRIPT tags.
®  Beginning and ending SCRIPT tags surround the code. The LANGUAGE attribute indicates the scripting language. You must specify the language because browsers can use other scripting languages.
®  You can use SCRIPT blocks anywhere in an HTML page. You can put them in both the BODY and HEAD sections. However, you will probably want to put all general-purpose scripting code in the HEAD section in order to keep all the code together. Keeping your code in the HEAD section ensures that all code is read and decoded before it is called from within the BODY section.
®  One notable exception to this rule is that you may want to provide inline scripting code within forms to respond to the events of objects in your form.
A Sample VBScript :    
      <html>
 <body>
<script type="text/vbscript">
document.write("Hello World!")
</script>
</body>
</html>

v  VB Script features by category:
®  Array handling
®  Assignments
®   Comments
®  Constants/Literals
®   Control flow
®  Conversions
®  Dates/Times
®  Declarations
®  Error Handling
®  Expressions
®  Formatting Strings
®  Input/output
®  Literals
®  Math
®  Miscellaneous
®  Objects
®  Operators
®  Options
®  Procedures
®  Rounding
®  Script Engine ID
®   Strings
®  Variants

No comments:

Post a Comment