The execution relationship between the HTML hyperlink a tag’s jump and onclick
The “a” tag of HTML is used to jump. However, if the onclick event is added, the execution order?
< a http: / / 1. HTML “onclick =” return confirm (‘Do you want to delete this node? ‘);” ><img src=” shanchu.gif “></a>
If onclick returns false, a does not jump;
If onclick returns true, a jumps
Note: add the return keyword in onclick
This is often used to judge before jumping!!