Your Ad Here
Welcome To Mega Star Party,Megafans,Chiru&Pawanfans, Ram Charanfans Site
Featured Blogs: Related To Naidu Community

Wednesday, May 6, 2009

VBScript How To

The HTML


Example Explained
------------------
To insert a VBScript into an HTML page, we use the tells where the VBScript starts and ends:
<%--




--%>
The document.write command is a standard VBScript command for writing output to a page.

By entering the document.write command between the tags, the browser will recognize it as a VBScript command and execute the code line. In this case the browser will write Hello World! to the page:
<%--




--%>
How to Handle Simple Browsers
----------------------------------
Browsers that do not support VBScript, will display VBScript as page content.

To prevent them from doing this, the HTML comment tag should be used to "hide" the VBScript.

Just add an HTML comment tag (end of comment) after the last VBScript statement, like this:
<%--




--%>

No comments:

Post a Comment