3 ms·
Can anyone explain how this works?
by Raphmedia 10y ago
Can anyone explain how this works?
- ge96 10y agoPerhaps try stack overflow or /r/webdev I too want to know
- tinus_hn 10y agoThe problem is that a document in a window opened by a link with target="_blank" unexpectedly has a reference to the document that contains the link, using the window.opener property. This property has limited functionality but one of the things that are allowed is redirecting the page to something else which is kind of unexpected. The problem is not websites that use target="_blank", it's browsers that refuse to fix this behavior because of some ill-defined compatibility issue that appears to exist mostly in the heads of developers who don't want to work on a fix.