Answer the question
In order to leave comments, you need to log in
A difficult ban on all links?
Friends, how to disable the transition to all links event-wise, ON pure js, WITHOUT jquery,
<a href="https://toster.ru/">toster1</a>
<a href="https://toster.ru/">toster2</a>
<a href="https://toster.ru/">toster3</a>document.getElementsByTagName('a')[0].onclick = function() {
return false;
};document.getElementByTagName('a')[0].addEventListener('click', function(e) {
e.preventDefault();
}, false);$(document).on('click','a', function(){ return false; });Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question