Articles → HTML → noscript in HTML

noscript in HTML






Purpose





Syntax


<noscript>Text to be displayed if script is not enabled or supported</noscript>



Example


<!DOCTYPE html>
<html>
<head>
    <title></title>
    <script>
        document.write("JavaScript is enabled");
    </script>
    <noscript>JavaScript is not enabled</noscript>
</head>
<body>    
</body>
</html>



Output



Click to Enlarge


Browser support


Internet ExplorerFirefoxChromeSafariOperaEdge
YesYesYesYesYesYes



Posted By  -  Karan Gupta
 
Posted On  -  Wednesday, October 25, 2017

Query/Feedback


Your Email Id  
 
Subject 
 
Query/FeedbackCharacters remaining 250