PDA

View Full Version : <No Script>



Pelicans
12-07-2006, 03:07 PM
Okay, so why would you use a <no script> tag and why? Seems like if you're using it you're hiding something or am I do not understanding something?

Thanks!

minstrel
12-07-2006, 04:07 PM
HTML <noscript> tag (http://www.w3schools.com/tags/tag_noscript.asp)

Definition and Usage
The noscript element is used to define an alternate content (text) if a script is NOT executed.

This tag is used for browsers that recognizes the <script> tag, but does not support the script in it.

Note: If a browser supports scripting, it will not display the text in the noscript element.

Note: Browsers that do not recognize the <script> tag will display the tag's content as text on the page. To prevent the browser from doing this, you should hide the script in comment tags. An old browser (one that does not recognize the <script> tag) will ignore the comment and will not write the tag's content on the page, while a new browser will understand that the script should be executed, even if it is surrounded by comment tags!

>>> Most search engine spiders do not do well with javascript.