Introduction - If you have any usage issues, please Google them yourself
In this case mainly onClick capture users on the button click event, and then call the location object the href method or window object' s open method to open the link. Another technique is to submit the form to the link function, the button type = submit type button form action value is the link target, target value is the link to open the target.