在多层iframe嵌套时,parent和window如何理解?
window和parent在IE和Firefox中的实现有些不太一样。
w3c中有如下叙述:http://www.w3schools.com/jsref/obj_window.asp
Window Object
The window object represents an open window in a browser.
If a document contain frames (<frame> or <iframe> tags), the browser creates one window object for the HTML document, and one additional window object for each frame.
1. 既然每个frame有自己的window,window.name为什么还一样?
参考资料:
http://www.w3schools.com/jsref/obj_navigator.asp
http://www.w3school.com.cn/htmldom/dom_obj_window.asp