Saturday, November 15, 2008

HTML Scripts


Add scripts to HTML pages to make them more dynamic and interactive.


Examples

Insert a script
This example demonstrates how to insert a script into your HTML document.

Work with browsers that do not support scripts
This example demonstrates how to handle browsers that do not support scripting.


Insert a Script into HTML Page

A script in HTML is defined with the

The script above will produce this output:

Hello World!

Note: To learn more about scripting in HTML, visit our JavaScript School.


How to Handle Older Browsers

A browser that does not recognize the

VBScript:


The

In addition to hiding the script inside a comment, you can also add a

The

VBScript:


Script Tags

Tag

Description

Search

My Blog List