Brief Introduction to VBScript!
- Vbscript is the scripting language.
- Scripting languages are such type of programming languages which is used to provide control in another host enviroment.
- Scripting Languages are interpreted not compiled. They can be embedded to the <head>..</head> section or the <body>..</body> section of the html tags.
- <head>..</head> section is prefered one because the head section gets interpreted first than the <body>..</body> section.Vbscript is the client-sided scripting languages which is the light version of VB and default scripting language of ASP.
- If you are the good vb programmer then you will not have difficulties in using the vbscript language in your web page.
Sample Vbscript Program:
<html>
<head>
<title> Title of Your page!</title>
<script language = "vbscript">
Sub welcome()
Dim String
String = "Hello"
String = String & " world!"
document.write(String)
End Sub
</script>
</head>
<body onload=welcome()>
<h3>Use of vbscript in webpage! </h3>
</body>
</html>
<head>
<title> Title of Your page!</title>
<script language = "vbscript">
Sub welcome()
Dim String
String = "Hello"
String = String & " world!"
document.write(String)
End Sub
</script>
</head>
<body onload=welcome()>
<h3>Use of vbscript in webpage! </h3>
</body>
</html>
No comments:
Post a Comment