<noscript> Element

If JavaScript is not enabled or the browser does not support JavaScript, a message can be displayed to the user using the <noscript> element, and is generally placed after the <script> tags, like so:

<html>
    <head>
        <title>JavaScript</title>
    </head>
	<body>
		<script>
			document.write("JavaScript is enabled");
		</script>
		<noscript>
			Please enable JavaScript, or try a JavaScript enabled browser.
		</noscript>
    </body>
</html>

Save & refresh browser:

Please enable JavaScript, or try a JavaScript enabled browser.

Leave a Reply