3 ms·
I agree this, seems wrong. Does it work in all browsers?
by ape4 6y ago
I agree this, seems wrong. Does it work in all browsers?
- twiss 6y agoIt seems there's a typo in the quote, but the following indeed works in both Chrome and Firefox: window.frames[0].frames[2].location = "https://example.com"; Even if `window.frames[0]` is cross-origin.
- jandem 6y agoThis behavior is defined in the HTML spec, here: https://html.spec.whatwg.org/multipage/browsers.html#crossoriginproperties-(-o-) https://html.spec.whatwg.org/multipage/browsers.html#crossor...