1.

Check if a variable exist in JavaScript

Answer»

The <noscript> TAG is used in JavaScript to allow adding an alternate message if you disable JavaScript in the web browser. In this way a user can know whether the web browser has JavaScript or not. If it’s not there, then the message added USING the <noscript> is visible.

The following is an example that ells itself whether JavaScript is disabled in the web browser or not:

<!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