How to find whether a browser supports JavaScript or not?

To find whether the browser supports JavaScript or nor, 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 an alternate text message.

Here’s an example,

<!DOCTYPE html>
      <title>HTML noscript Tag</title>
            document.write("Hello JavaScript!")

         Your browser does not support JavaScript!

Updated on: 30-Sep-2019


Kickstart Your Career

Get certified by completing the course

Get Started