Basic JavaScript Question:
Download Job Interview Questions and Answers PDF
How to hide JavaScript code from old browsers that don't run it?
Answer:
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
Download JavaScript Interview Questions And Answers
PDF
Previous Question | Next Question |
To put a "close window" link on a page? | How to comment JavaScript code? |