How to give a warning for Non-JavaScript Browsers?

JavascriptWeb DevelopmentFront End Technology

To let users know about non-JavaScript web browsers, use the <noscript> tag. The HTML <noscript> tag is used to handle the browsers, which do recognize <script> tag but do not support scripting. This tag is used to display alternate text message

Here’s an example,

<!DOCTYPE html>
<html>
   <head>
      <title>HTML noscript Tag</title>
   </head>

   <body>
      <script>
         <!--
            document.write("Hello JavaScript!")
         -->
      </script>

      <noscript>
         Your browser does not support JavaScript!
      </noscript>
   </body>
</html>
raja
Published on 09-Jan-2018 10:45:13
Advertisements