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 Javascript19-07-2017 Javascript ascending order descending order |
Using slice remove last two characters from given string07-03-2017 slice remove |
Change datepicker display format06-03-2017 datepicker angular js |
Filter for insert HTML in Angular Js06-03-2017 filter show html angular js html |
Filter for change Date Time format (MM-dd-yyyy HH:mm) in Angular Js05-03-2017 mm-dd-yyyy HH:MM date formats angular js |