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:
Using slice remove last two characters from given string07-03-2017 slice remove |
Get previous date from given date in javascript06-03-2017 date javascript previous date |
Navigate to another page using java script06-03-2017 javascript redirection navigation |
Filters for convert text to camel case in Angular Js05-03-2017 angularjs camelcase filters |
Get Unique values from array/object in javascript19-02-2017 javascript unique remove repeated values from array |