Hello good people of the internet! I’ve encountered maybe the strangest problem ever
I’ve built this lightbox that loads a page inside a (dynamically loaded) iframe. It all works and works pretty well, until someone using Internet Explorer (any version) presses the back button in the browser.
What happens then is, it navigates back INSIDE the iframe, even when there is NO history inside the iframe.
Understandably, I’m very puzzled about this behaviour and I can’t seem to find a solution. Could anyone please help me with this problem, and point me on a fix (if it even exists)?
That is indeed very weird, and I can’t say I’ve ever heard of this bug. It’s not quite as weird as that one time when an image literally cut a hole its size inside its containing wrapper, but it’s up there on the same level.
Is it possible at all that some kind of JS on the loaded iframe page is interfering with its parent frame? Maybe this is some obscure bug whereby the default frame target is set to the parent?