How to open external links in a new window without a tag

 location.href = "url address" will overwrite the original window

 wiow.open("url address") will open this link in a new tab/new window

Guess you like

Origin blog.csdn.net/a1059526327/article/details/108510146