Expert JavaScript Developer Question: Download Expert JavaScript Developer PDF

How you hide JavaScript code from old browsers that don't run it?

Tweet Share WhatsApp

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 Expert JavaScript Developer PDF Read All 58 Expert JavaScript Developer Questions
Previous QuestionNext Question
How you comment JavaScript code?What does JavaScript null mean?