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


Picture showing the output of the noscript in HTML

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