Vbscript

VBScript Syntax

VBScript Syntax

VBScript syntax is a set of predefined rules that ascertain how the language will be coded by the developer and interpreted by the browser or server.

The VBScript syntax may also be presented in some ways comparable to JavaScript. You are familiar with Keywords like variables, statements, functions, data typing, operators, objects and so on if you know JavaScript or any other language for that matter. This, too, is part of the VBScript.

First VBScript

Let us write a VBScript to print out "Hello, this is my first VBscript program".

<html>
   <body>
      <script language = "vbscript" type = "text/vbscript">
         document.write("Hello, this is my first VBscript program")
      </script>
   </body>
</html>

In the given example, document.write function is called, which writes a string into the HTML document. Write function is used to write text, HTML or both.

Top course recommendations for you

    Introduction to Kubernetes
    2 hrs
    Beginner
    6.8K+ Learners
    4.29  (252)
    Angular7 for Advanced Level
    3 hrs
    Advanced
    9.6K+ Learners
    4.62  (229)
    Java Algorithms
    2 hrs
    Intermediate
    19.1K+ Learners
    4.49  (419)
    Visual Studio Online
    1 hrs
    Beginner
    13K+ Learners
    4.4  (463)
    Software Testing Tutorial
    1 hrs
    Beginner
    122.6K+ Learners
    4.49  (8288)
    Sorting Algorithms in C
    3 hrs
    Beginner
    11.5K+ Learners
    4.48  (194)
    Programming Basics
    1 hrs
    Beginner
    167.1K+ Learners
    4.48  (8432)
    Coding Environment
    1 hrs
    Beginner
    18.7K+ Learners
    4.41  (359)
    JQuery Tutorial
    1 hrs
    Beginner
    10.9K+ Learners
    4.41  (543)
    What is IoT?
    1 hrs
    Beginner
    29.6K+ Learners
    4.46  (2187)