Specifies alternative content to display if a client browser does not support scripts.
Platform Support
IE | Netscape | Mozilla | Opera | Safari | 3.0+ | 2.0+ | 1.0+ | 4.0+ | 1.0+ |
---|
Example
This example shows a basic <script> element for a JavaScript script and its corresponding <noscript> element :
<script language="type/javascript">
<!-- JavaScript script... -->
</script>
<noscript> Your browser does not support JavaScript. </noscript>
Remarks
<noscript> </noscript> currently only displays if a browser does not support any scripting language. It does not distinguish between scripting languages.
Attribute Detail
Attribute | IE | Netscape | Mozilla | Opera | Safari |
---|---|---|---|---|---|
CSS class assigned to the element. | 2.0+ | 1.0+ | 1.0+ | 4.0+ | 1.0+ |
Direction of the element text. | 2.0+ | 1.0+ | 1.0+ | 4.0+ | 1.0+ |
Unique identifier for the element. | 2.0+ | 1.0+ | 1.0+ | 4.0+ | 1.0+ |
Language code for the content of the element. | 2.0+ | 1.0+ | 1.0+ | 4.0+ | 1.0+ |
Inline style for the element. | 2.0+ | 1.0+ | 1.0+ | 4.0+ | 1.0+ |
Short text description for the element. | 2.0+ | 1.0+ | 1.0+ | 4.0+ | 1.0+ |
Event Detail
Event | IE | Netscape | Mozilla | Opera | Safari |
---|---|---|---|---|---|
Fires when the ready state of the element changes. | 4.0+ | no | no | no | no |
Availability
W3C HTML 4.01