A tag needs to be added when opening a new pagerel=”noopener noreferrer”
Otherwise, in the newly opened page（ http://www.baidu.com ）Can be passed through window.opener Obtain partial control of the source page, even if the newly opened page is cross domain (for example, location does not have cross domain problem).
In chrome 49 +, opera 36 +, open the link with rel = noopener added, window.opener Will be null. In older browsers, you can use rel = norerror to disable the referer attribute of the HTTP header
In element UI, El link is equivalent to a tag
In addition, you can use the window.open Open the page and manually set opener to null.
var otherWindow = window.open('http://www.baidu.com'); otherWindow.opener = null; otherWindow.location = url;