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:

Time Sorting Ascending or Descending Order in Javascript

19-07-2017 Javascript ascending order descending order

Example for Conditional Operator in php

16-04-2017 php Conditional Operator example

How to insert bulk information into database in single query execution

18-03-2017 insert sql bulk database

Using slice remove last two characters from given string

07-03-2017 slice remove

Filter for replace text in Angular Js

05-03-2017 filter replace angular js