(1) The method or variable that the child page calls the parent page:
Window.parent. Method () or variable name
Window.parent is equivalent to locating the parent page and writing code in the parent page.
WINDOW.PARENT.AA ();//adjust the AA function window.parent.bb;//the BB variable for example: To get the value of a text box with the ID AAA in the Sub-page window.parent.$ ("#aaa"). Val (); The premise of this notation is to refer to the jquery window.parent.getElementById ("AAA"). Value; JS's wording
(2) parent page Fetch sub-page
Mainly through Contentwindow to the sub-page
document.getElementById ("Childframe"). Contentwindow.childtest ();//Childtest method in the paging sub-page js notation var ChildWindow = $ ("#addFrame") [0].contentwindow;//gets the object in the subform childwindow.formsubmit ();//Formsubmit Method for paging sub-page How jquery is written//commented: Where IDs of Childframe and Addframe-time IFRAME
JS Child page Parent page methods and variables call each other