|
A browser that does not recognize the <script> tag at all, will display
the <script> 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
(that does not recognize the <script> tag) will ignore the comment and it
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.
|