Thursday, February 23, 2012

Prompt window using VB Script

VB script is a client side programming language. VB script is introduced by Microsoft .And only Microsoft web browser Internet Explorer support it. It is very similar with JavaScript which was introduced by Netscape navigator. VB script is not so popular as javaScript because of it’s narrow browser support.
You can place VBScript program in body and head section both.

This program will open a pop up window in browser

<script type="text/vbscript">
function myFunction()
   alert("Hello World!")
end function

<button onclick="myFunction()">Click me</button>
<script type="text/vbscript">
document.write("This message is written by VBScript")

No comments:

Post a Comment