parent page has a child page < iframe src= "> < / iframe > , src is an outer link landing page;
landing in the child page will jump directly in the parent page, how to make the child page landing jump in iframe?
tried:
- set the
sandboxattribute to restrict the iframe. As a result, the console reports an error and no page jumps, but the login status has been recorded .
- another layer of iframe, sub-iframe contains the
srcof grandson iframe, iframe as the outer chain, and the result is that it still jumps to the top-level page after logging in.
- same as the above three-tier structure, add
< base target= ">tag to the sub-iframe,_ blank_ self_ parent_ topframenamehas been tried, and the result is still redirected to the top page .
is not a homologous page that cannot get the contents of the child page, so can you monitor the jump instruction from the child page to the parent page and trigger the function?
if feasible, use sandbox to prevent the parent page from jumping, and trigger the function of the parent page to refresh the parent page or set the src of the child iframe to achieve the effect.
