What Is VBScript?
- VBScript is a browser side scripting language i.e. it can run on browser.
- VBScript is used to write scripts that can automate any number of activities in a web page
- VBScript is an interpreted language.
- VBScript is interpreted language so VBScript do not compile their scripts until they are executed
- Syntax errors in VBScripts do not appear until you run them.
VBScript Usage:
- HTML Form Validation
- Creating rotating banners.
- Creating animation effects such as changing the graphics.
- Detection of Browser and Browser Versions
- Interacting with visitors using pop-up dialogs
- Automatically opening multiple customized Internet Explorer Windows when people visit your web site.
- Performing calculations based on input provided by user.
- Addressing visitors to your web site by name using VBScript to manage cookies.
VBScript Example :
<html>
<body>
<script language="vbscript" type="text/vbscript">
document.write("Hello World!")
</script>
</body>
</html>
VBScript Version Information :
Version | Host Application |
---|
1.0 | Microsoft Internet Explorer 3.0 |
2.0 | Microsoft Internet Information Server 3.0 |
3.0 | Microsoft Internet Explorer 4.0 |
3.0 | Microsoft Internet Information Server 4.0 |
3.0 | Microsoft Windows Scripting Host 1.0 |
3.0 | Microsoft Outlook 98 |
4.0 | Microsoft Visual Studio 6.0 |
5.0 | Microsoft Internet Explorer 5.0 |
5.0 | Microsoft Internet Information Server 5.0 |
5.5 | Microsoft Internet Explorer 5.5 |
5.6 | Microsoft Visual Studio .NET |
5.7 | Microsoft Windows Vista |