Scripting and Browser Concerns
Hiding Scripts from Older Browsers
To avoid this, many people got into the habit of "commenting out" their scripts—in other words, using comment syntax to prevent the script from being displayed (see Example 3-11).
Example 3-11. Hiding a script with comments
Using the noscript Element
If you'd like to add some text so supporting browsers will display a message regarding script support, you can do so using the noscript element (see Example 3-12).
Example 3-12. Using the noscript element
Browsers that support scripting and do not have scripting disabled will not see the contents of the noscript element.