Detect AdBlock with JavaScript in my browser

30-07-2017 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:

Sanitization in java sript
14-03-2017 sanitization java script
Convert Time 24 hrs to 12 hrs format In javascript
12-03-2017 date javascript 12hrs convert
Get previous date from given date in javascript
06-03-2017 date javascript previous date
Change datepicker display format
06-03-2017 datepicker angular js
How to set or update or push the values into Object in javacript
27-02-2017 javascript set update push object