1.

Why the 'with' keyword is used in JavaScript?

Answer»

Yes, <noscript> element do exist in JavaScript. Use this element to set a message for USERS if the web browser they are using do not support JavaScript. This is also useful if the scripts have been disabled in the web browser.

The following is an example:

<!DOCTYPE HTML> <html>    <HEAD>       <title>HTML noscript</title>    </head>    <body>       <script>          <!--             document.write("This is demo text!")          -->       </script>       <noscript>          Your browser does not support JavaScript!       </noscript>    </body> </html>

The above code will allow the web browser that doesn't support JavaScript to DISPLAY the text which we added under <noscript> tag i.e. "Your browser does not support JavaScript!".



Discussion

No Comment Found