preventDefault() – Cancel the browser’s action
Once browser fired or execute any event like onclick, onmouseover event, we can cancel or terminate or stop the execution of that event. preventDefault() does not terminate or cancel the execution of the event....