Detect AdBlock with JavaScript in my browser

AdBlock
javascript
detect

Basically Adblocker is used to hide the ads in the website. We can find adblocker existed / installed or not by using javascript. 

Below is the code for detect adblocker in browser by using javascript.

<html>
    <head>
        <title>Check Adblocker existed Using Javascript</title>
        <script>
            window.onload = function() {
                setTimeout(function() {
                    if (typeof(window.google_jobrunner) === "undefined") {
                        alert("adblocker is existed");
                    }else{
                        alert("no adblocker found.");
                    }
                }, 3000);  
            };
        </script>
    </head>
</html>

 

 

You might also like:

Use java script file client side and server side at a time in node js

30-07-2017 node js include call javascript

How to insert bulk information into database in single query execution

18-03-2017 insert sql bulk database

How to use request module in node js

16-03-2017 request module node js

How to find Angular Errors

06-03-2017 errors angularjs exceptionHandler

Filter for insert HTML in Angular Js

06-03-2017 filter show html angular js html