SoFunction
Updated on 2025-03-02

Method to prohibit the pop-up window of the iframe script from overwriting the parent window

The iframe function I want is not to control the parent page. If it wants to control it, where can it add any code from the parent page that makes it uncontrollable?
If there is such a statement in the iframe: =""This will change the parent page's web page,
What did I add to the parent page? It would prevent it from changing the parent page? There are commands that pop up in a new window instead of overwriting the parent page!

After Baidu is put into the framework, it will jump to the parent framework using search, but this tomato search successfully put it into the framework, but I don’t understand how it achieved it!

Definition in parent window

var location = new Object()
//orvar location = ""All are OK