Home >Web Front-end >HTML Tutorial >Introduction to the execution sequence example between href jump and onclick of html hyperlink a tag_HTML/Xhtml_Webpage Production
The execution relationship between the href jump and onclick of the a tag of the html hyperlink
The href of the a tag of the html is used for jump, but if the onclick event is added, what is the execution order?
As follows:
[code]
If onclick returns false, then a will not jump;
If onclick returns true, then a will jump
Note: Add the return keyword in onclick
This is often used to judge before jumping! !