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.

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



You might also like:

Example for Conditional Operator in php
16-04-2017 php Conditional Operator example
How to get id by using name attribute in javascript
20-03-2017 html id name javascript
How to use http-post request in node js
14-03-2017 http-post module node js
Convert Time 24 hrs to 12 hrs format In javascript
12-03-2017 date javascript 12hrs convert
Filter for insert HTML in Angular Js
06-03-2017 filter show html angular js html