How to check web browser support in HTML5

JavascriptWeb DevelopmentFront End Scripts

You can try to run the following code to detect a web worker feature available in a web browser:

      <title>Big for loop</title>
      <script src = "/js/modernizr-1.5.min.js"></script>
         function myFunction(){
            if (Modernizr.webworkers) {
               alert("Congratulations!! You have web workers support." );
            } else{
               alert("Sorry!! You do not have web workers support." );

      <button onclick = "myFunction()">Click me</button>

The following is the result:

Updated on 29-Jan-2020 08:35:39