Adding VBSCRIPT to an HTML page

ADDING VBSCRIPT CODE TO AN HTML PAGE:

You can use the SCRIPT element to add VBScript code to an HTML page.
VBScript code is written within paired SCRIPT tags.
Beginning and ending SCRIPT tags surround the code.
The LANGUAGE attribute indicates the scripting language.
You must specify the language because browsers can use other scripting languages.
You can use SCRIPT blocks anywhere in an HTML page.
You can put them in both the BODY and HEAD sections.

Inserting a VBscript code is done very easily using the script tag. Here is an example:

example 1:


<html>
<head>
</head>
<body>
<script type="text/vbscript">
<!--script
***Here will be the the vbscript code***
-->
</script>
</body>
</html>

example 2:


<html>
<head>
<script type="text/vbscript">
<!--script
***Here will be the the vbscript code***
-->
</script>
</head>
<body>
</body>
</html>

No comments:

Post a Comment