What is the meaning of preventDefault() in HTML5 | Sololearn: Learn to code for FREE!
¡Nuevo curso! ¡Todo programador debería aprender IA Generativa!
Prueba una lección gratuita
+ 1

What is the meaning of preventDefault() in HTML5

15th Dec 2018, 2:30 PM
Pramod Paratabadi
Pramod Paratabadi - avatar
1 Respuesta
+ 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.
15th Dec 2018, 2:40 PM
–ź–Ĺ–ī—Ä–Ķ–Ļ