DEVFYI - Developer Resource - FYI

How to hide javascript code from old browsers that dont run it?

JavaScript Interview Questions and Answers


(Continued from previous question...)

55. How to hide javascript code from old browsers that dont run it?

Use the below specified style of comments <script language=javascript> <!-- javascript code goes here // --> or Use the <NOSCRIPT>some html code </NOSCRIPT> tags and code the display html statements between these and this will appear on the page if the browser does not support javascript

(Continued on next question...)

Other Interview Questions