页面中获取iframe中的dom的方法
2012-07-03 13:04
211 查看
页面中获取iframe中的dom的方法 $("#inner",top.frames['test'].document).html(); 兼容方法: top.frames['test'].document获取iframe中的document对象 不兼容: document.frames['test'].document;只有ie识别
页面中获取iframe中的dom的方法
$("#inner",top.frames['test'].document).html();
兼容方法: top.frames['test'].document获取iframe中的document对象
不兼容: document.frames['test'].document;只有ie识别
top是获取顶层的window对象
parent是获取父层的window对象
相关文章推荐
- 原生js获取iframe中dom元素--父子页面相互获取对方dom元素的方法
- iframe父页面获取子页面参数的方法
- javascript 获取iframe里页面中元素值的方法
- Layer获取iframe的dom元素及调用iframe页的js方法
- 原生js获取iframe中dom元素--父子页面相互获取对方dom元素
- Jquery调用iframe页面方法、获取节点操作
- iframe父页面与子页面之间的元素获取与方法调用
- jsp子页面(iframe)获取父页面(在另一个页面中用iframe)元素的方法
- Jquery中获取当前页面某iFrame内部元素的方法
- 六)iframe 及父子页面之间获取元素、方法调用
- JS与JQ中iframe获取子父级页面元素的方法
- iframe 触发父页面方法,javascript子窗口获取父窗口失败原因
- Jquery 获取 iframe 父页面与子页面的元素和方法
- 主页面获取iframe 的子页面方法。
- Jquery方式获取iframe页面中的 Dom元素
- iframe父页面获取子页面参数的方法
- 获取iframe中的内容、查找获取指定元素(关于用c++调用WEBBROWSER控件,使用相关接口操作web页面元素的一些方法)
- iframe父、子页面之间页面元素的获取及方法的调用 jquery
- 在iframe获取父窗口dom对象,iframe加载完毕后触发事件,父页面调用iframe方法
- javascript 获取iframe里页面中元素值的方法