that do not support it.
To prevent old browsers from displaying your JS code, do the
Immediately after the opening <script> tag, put a one-line
HTML-style comment without the closing characters, so that the first
two lines of your script would look like this:
Thus, your HTML file will contain the following fragment:
Put your JS code here. Old
browsers will treat it as regular
HTML comment. //-->
will normally interpret the code between the tags <script>
and </script> (the first and last lines of the code will be
Iana Tsolova is Product Manager at Telerik’s DevTools division. She joined the company back in the beginning of 2008 as a Support Officer and has since occupied various positions at Telerik, including Senior Support Officer, Team Lead at one of the ASP.NET AJAX teams and Technical Support Director. Iana’s main interests are web development, reading articles related to geography, wild nature and latest renewable energy technologies.
Copyright © 2017, Progress Software Corporation and/or its subsidiaries or affiliates. All Rights Reserved.
Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks or appropriate markings.