Relationship summary JS & Jquery basis of a window object

1.top change forever the highest level of segmentation refers to the window of the browser window. If you plan to execute the command to start from the highest level split window, you can use the top variable.
2.opener opener for page references in the object's window.open method to perform the window.open pages. For example: A page with window.open () square
not eject the page B, the page B A page can be referenced by the opener, so that it can be operated by the object A page.
3.parent parent for iframe, frame sub-page access objects generated in the parent page. For example: A page includes an iframe or frame, then the iframe
or frame pages can be referenced object A page by parent objects. This allows to get or return values A page.
4. Further referring to self current window

 

distinction parent and the opener:

parent refers to the parent window, in the FRAMESET, FRAME FRAMESET window is the PARENT.
New window refers to the original window opener with WINDOW.OPEN other ways to create corresponding.
It is the parent frame relative to the parent window object
opener is directed to the use window.open open window for the parent window, the premise is open only window.open

method calls the parent page document.parentWindow.menthod ()

 

attached: Window object, Parent objects, Frame object and class relations Document object Form object
Window object → Parent objects → Frame subject → Document object → Form objects,
如下: parent.frame1.document.forms[0].elements[0].value;

Guess you like

Origin www.cnblogs.com/hualiuliu/p/11453711.html