noscript tag (XHTML 1.0)

alternate content container for non script-based rendering

Topics

The 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
onclicka pointer button was clicked 
ondblclicka pointer button was double clicked 
onkeydowna key was pressed down 
onkeypressa key was pressed and released 
onkeyupa key was released 
onmousedowna pointer button was pressed down 
onmousemovea pointer was moved within 
onmouseouta pointer was moved away 
onmouseovera pointer was moved onto 
onmouseupa pointer button was released 



© htmlpedia.net 2008 - 2010