www.pickatutorial.com Computer Tutorials
Top eBooks: C/C++ | C# | Android | Mathematics | Database | Cloud | Graphics | Networking | Oracle | Hardware | AI
Top Tutorials: C/C++ | C#.NET | PHP MySQL | Java | Java Script | jQuery | HTML | xHTML | HTML5 | VB Script| CSS
Lessons VBScript MsgBox Bookmark and Share
Tutorial Home
Lesson 1
Lesson 2
Lesson 3
Lesson 4
Lesson 5
Lesson 6
Lesson 7
Lesson 8
Lesson 9
Lesson 10
Lesson 11
Lesson 12
Lesson 13
Lesson 14

Often in our VBScript code we need to share some information with the visitor of our website. Sometimes we need to greet or welcome the visitor.

VBScript MsgBox (Message Box) allows us to pupup a message box, which we can use to greet our visitor or share some information with him.

Creation of a Message Box in VBScript is very easy; we only need to supply the MsgBox function with a string.

Here is an example that pops a Message Box with the words "Hello World!":

<html>
<head>
<title>VBScript MsgBox Function Example</title>
</head>
<body>

Here is another example:

<script type="text/vbscript">
Dim h
Dim w
h = "Hello "
w = "World!"
MsgBox h & w
</script>

</body>
</html>

When the above html webpage is loaded into Internet Explorer. It pops a Message Box. In the above example we have declared and defined two variables h and w and then by using the string concatenation operator &, we display the a concatenation of these two variables in a Message Box.

Our VBScript Tutorial for Beginners ends here. How did you find it? Please let us know at pickatutorial@yahoo.com

More VBScript Tutorials



Home - Advertise - Contact - Disclaimer - About Us
© Since 2006 pickatutorial.com -- All Rights Reserved.