noscript tag (XHTML 1.1)
alternate content container for non script-based renderingThe noscript tag allows you to specify content which will only be rendered if the client, e.g. a browser, is not able to interpret the specified scripting language. For instance, consider the following example:
<script type="text/javascript">
alert('JavaScript is working just fine!');
</script>
<noscript>
Sorry, but your browser does <b>not</b> appear to understand JavaScript!
</noscript>
Try running the example and you will get a message from JavaScript. Now, if you disable JavaScript in your browser, you will see the "Sorry" message being printed instead of the JavaScript alert box. Within the noscript tag, you can use any sort of markup as well, to get your message through.
Attributes
| Attribute | Deprecated | Required | Description |
|---|---|---|---|
| class | space-separated list of classes | ||
| dir | direction for weak/neutral text | ||
| id | document-wide unique id | ||
| lang | language code | ||
| style | associated style info | ||
| title | advisory title |
Events
| Event | Description |
|---|---|
| onclick | a pointer button was clicked |
| ondblclick | a pointer button was double clicked |
| onkeydown | a key was pressed down |
| onkeypress | a key was pressed and released |
| onkeyup | a key was released |
| onmousedown | a pointer button was pressed down |
| onmousemove | a pointer was moved within |
| onmouseout | a pointer was moved away |
| onmouseover | a pointer was moved onto |
| onmouseup | a pointer button was released |
© htmlpedia.net 2008 - 2010