Detect Adblocker and show ajax model

shape
shape
shape
shape
shape
shape
shape
shape

AdBlocking severely affects those who are running the site by only depending on ad revenue. Here is the way to detect AdBlock with JavaScript and show Adblocker Indication in modal popup using Bootstrap and jQuery.

The following script will detect if the user has enabled the AdBlocker in his browser. If the user has enabled the AdBlocker, then the AdBlocker will set the height of the <div> with class ‘adsbox’ to zero/auto. So when <div> offsetHeight is zero/auto, we will trigger the modal popup to show Indication to the user to disable AdBlocker for our site.

 

Author Name

phpcable

Category

Free Projects

Item Rating

5 star

Total Downloads

147+

WeCreativez WhatsApp Support
Our customer support team is here to answer your questions. Ask us anything!
👋 Hi, Hi, how can we help?