Use jquery to operate iframe
1. There are two ifames in the content
You can use the following statement in frame1 to reference frame2:
self.parent.frames["frame2"];
4. Mutual references between different levels of frameworks
The hierarchy of frames is for top-level frames. When the levels are different, as long as you know the level where you are and the level and name of the other frame, you can easily access each other by using the properties of the window object referenced by the frame, for example:
self.parent.frames["childName"].frames["targetFrameName"];
5. Reference to the top-level frame
Similar to the parent attribute, the window object also has a top attribute. It represents a reference to the top-level frame, which can be used to determine whether a frame itself is a top-level frame, for example:
//Determine whether this frame is a top-level frame
if(self==top){
//dosomething
}