| Syntax | <SCRIPT>...</SCRIPT> |
|---|---|
| Attribute Specifications |
|
| Contents | An embedded script |
| Contained in | HEAD, inline elements, block-level elements |
The SCRIPT element includes a client-side script in the document. Client-side scripts allow greater interactivity in a document by responding to user events. For example, a script could be used to check the user's form input prior to submission to provide immediate notice of any errors by the user.
Note that not all browsers support client-side scripting, and supporting browsers allow the user to disable scripting, so authors should avoid dependence on client-side scripting wherever possible. The NOSCRIPT element can be used to provide ml>TABINDEX attri-Q">Q in W3C HTML 4.0 Recommendation