Friday, August 26, 2022

Links to local pages do not work in Chrome and Firefox

e.preventDefault() method stops the default action of a selected element from happening by a user. This method does not accept any parameter and works in two ways: It prevents a link from following the URL so that the browser can't go another page. It prevents a submit button from submitting a form.

https://developer.mozilla.org/en-US/docs/Web/API/Event/preventDefault

No comments:

Post a Comment