Adblock preventing button from being clicked

416 views Asked by At

I'm not able to click on my LinkButton in FireFox when I have either of the following extensions enabled:

  • AdBlock Plus
  • Disconnect

Any idea why this could be happening and what I could do to get around it? I've tried CausesValidation ="false" to no avail. It seems like the javascript:__doPostBack() function is just never called when these extensions are enabled.

1

There are 1 answers

0
khalid13 On BEST ANSWER

Here's a fuller answer, but I had a click event binding to my LinkButton looked like this:

$(anchorEl).click(function () { 
                    ga('send', 'event', 'outbound', 'click', anchorEl.href, {
                        'hitCallback':
                          function () {
                              document.location = anchorEl.href;
                          }
                    });
                    return false;
                }); 

Because of this the Javascript on the LinkButton was getting completely ignored and the __doPostBack() was not firing.