I call the iframe’s js function from the parent frame. My expected behavior is that it will redirect the iframe to a new page, relative to the iframe’s existing location.
Instead, it gets redirected relative to the parent frame’s location.
You can see a demo here:
Am I doing something wrong here, or will I just have to code in an absolute url for my redirect?
Found this thread that sounds very similar. However no one came up iwth an answer for it:
This way, the
moveMe executed in the iframe’s context.