Js中的window.parent ,window.top,window.self详解
在应用有frameset或者iframe的页面时,
1. parent是父窗口,
2. top是最顶级父窗口(有的窗口中套了好几层frameset或者iframe),
3. self是当前窗口, opener是用open方法打开当前窗口的那个窗口。
在应用有frameset或者iframe的页面时,
1. parent是父窗口,
2. top是最顶级父窗口(有的窗口中套了好几层frameset或者iframe),
3. self是当前窗口, opener是用open方法打开当前窗口的那个窗口。