Therefore, I know that when used, target="_blank"I can apply rel="noopenerin the tag a. But I'm trying to pass it as an argument window.open(), that is:
window.open('http://cats.com', '_blank', 'rel=noopener')
however, it does not work as I expected, since the object openerstill exists in the window after the user clicks on the link.
Is there something I am missing? Or can not be done as I intend?
I found some great articles, but as far as I can tell, they are not quite suitable for my use.
https://developer.mozilla.org/en-US/docs/Web/API/Window/open
https://mathiasbynens.imtqy.com/rel-noopener/
Great importance.
source
share