+1 vote
There is a site that uses JQuery in parallel with native JS. There are links that have event handlers attached to them. The standard preventDefault() method is applied to them. The links play the role of triggering the ajax functionality. In all browsers this works fine except IE11. In that, the links are activated and the result is a 404 page. What can be wrong with IE and how to fix it?
Try running the js through Babel babeljs.io/
Steppp , there's ES5, not 6

1 Answer

0 votes
Best answer
Try putting handlers in the onclick attribute, or instead of href for links use data-href and just put an anchor in the href

Also, there are two ways to cancel the event, try the first option just in case: