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! !