VBScript Tutorial


VBScript is a Microsoft scripting language.

VBScript is the default scripting language in ASP (Active Server Pages).

VBScript on a Server

When VBScript is used on a web server, with ASP, the statement response.write() produces output.



<%response.write("This is my first VBScript")%>


Show Example »

Click on the Try-it yourself button to see how it works.

What is VBScript?

  • VBScript is a scripting language
  • A scripting language is a lightweight programming language
  • VBScript is a light version of Microsoft's programming language Visual Basic
  • VBScript is the default language in ASP (Active Server Pages)

VBScript in a Browser

VBScript is a server scripting language. It should not be used for scripting in a browser.

VBScript Examples

Learn by 100 examples!

Because the scripts are executed on the server, you can not view the code in a browser. You will only see the output from ASP which is plain HTML.

At W3Schools every example displays the hidden ASP code. This will make it easier for you to understand how it works.

VBScript Examples

VBScript Reference

At W3Schools you will find a complete VBScript reference.

VBScript Reference

Color Picker