Open zhouzhongyuan opened 7 years ago
.
.
On Android devices, when pinch out, the page will enlarge.(This is the default action for touchmove)
The example shows the condition with preventDefault
and without preventDefault
The check input will be checked or unchecked when clicked.(default action) example
a
tag?Clearly, each event potentially has a default action. It may even have different default actions depending on context. You should clarify your question to make it clear that you are looking for the full set of default actions of an a element and not as it reads at the moment, like you are looking for a single default action, which would typically imply that of the click event.
Event.preventDefault() - Web APIs | MDN
Defination: Tells the user agent(浏览器) that if the event goes unhandled, its default action should not be taken as it normally would be.(如果事件可取消,则取消该事件。)