ABOUT PHPCABLE

We are a small group of professional web designers and developers who are dedicated to creating powerful, effective and engaging websites. Our bold design style and use of ultra-clean standards-based markup code combine to produce websites that boast exceptional search engine result positions, increased conversions and superior visitor loyalty... read more

For Learners

PhpCable is an online free PHP tutorial website, specially customized for candidates who are seeking complete practice based guidance in the field of PHP development... read more

CONTACT INFO
  • Address: PO Box 580051, Sinda
    Eastern Province Zambia
  • Phone: +260976196939
  • Email: [email protected]

DETECT ABLOCKER AND SHOW AJAX MODEL

Last Update : 10 - May - 2019.

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

Following script will detect if user has enabled the AdBlocker in his browser. If 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.



OTHER PROJECTS YOU MAY CONSIDER

FEEL FREE TO EXPLORE MY RECENT WORK