1, 嵌套的iframe中子iframe获取父iframe中的元素。
层次关系:
----+- window
| + 父iframe (id = main_iframe )
| + 子iframe(当前iframe)
获取父iframe中 "parentPage"元素的方法
op.window.document.getElementById("main_iframe").contentDocument.getElementById("parentPage")
1, 嵌套的iframe中子iframe获取父iframe中的元素。
层次关系:
----+- window
| + 父iframe (id = main_iframe )
| + 子iframe(当前iframe)
获取父iframe中 "parentPage"元素的方法
op.window.document.getElementById("main_iframe").contentDocument.getElementById("parentPage")