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:

Example for Conditional Operator in php

16-04-2017 php Conditional Operator example

Sanitization in java sript

14-03-2017 sanitization java script

How to convert html to pdf in Node js

12-03-2017 pdf convert html node js

Get next date from given date in javascript

06-03-2017 date javascript next date

Filter for insert HTML in Angular Js

06-03-2017 filter show html angular js html