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 |
Defines a script | |
Defines an alternate text if the script is not executed | |
Defines an embedded object | |
Defines run-time settings (parameters) for an object | |
Deprecated. Use |
No comments:
Post a Comment