Hellow Everybody in this video i explain event.preventDefault to you.
preventDefault tell to our html element don't do your normal action and after that you can say to your element do what instead of normal action.
javascript is a programming language for front end design and handled websites.
for use preventDefault you should access to element event.
preventDefault is too useFul method in events.
In this tutorial i make a link element in html
and i wanna say to my link don't redirect me to the link and just show me a confirm instead of redirect and i do it with our magical function which call it preventDefault.