Friday, May 22, 2009

VBScript How To.


VBScript How To


The HTML <script> tag is used to insert a VBScript into an HTML page.

Put a VBScript into an HTML page


The example below shows how to use VBSript to write text on a web page:




Example


<html>
<body>
<script type="text/vbscript">
document.write("Hello World!")
</script>
</body>
</html>

The example below shows how to add HTML tags to the VBScript:

Example ( IE Only )


<html>
<body>
<script type="text/vbscript">
document.write("<h1>Hello World!</h1>")
</script>
</body>
</html>

No response to “VBScript How To.”

Post a Comment