Window.parent is an IFRAME page called parent Page object
Example: a.html
If we need to assign a value to the Username text box in the a.html (like many upload functions, the Upload function page in the Ifrmae, upload the b.html after uploading the path into the text box of the parent page), We should write in the b.html:
var _parentwin = Window.parent;_parentwin.form1.username.value = "xxxx";
Window.opener is the parent page object called by window.open open child page
Opener: a reference to the Window object that opens the current window whose value is null if the current window is opened by the user.
Self represents its own window, and opener represents the window that opens itself, such as the Window a.html open window b.html. If you rely on the Window.Open method, the window b.html,self represents b.html itself, and the opener represents the window a.html.
The difference and use of window.parent and Window.opener