+ 1
What is the meaning of preventDefault() in HTML5
2 Réponses
+ 1
Preventing default actions for elenents.
For example, if you call this method on click event on link, browser will not go further. This behaviour is used for creating buttons etc via <a> tag. And for other purposes.