摘要: JavaScript 在父窗口中获取iframe中的元素 1 2 3 4 5 6 7 8 9 10 11 格式:window.frames["iframe的name值"].document.getElementById("iframe中控件的ID").click(); 实例:window.frame 阅读全文
posted @ 2019-04-12 17:47 bya 阅读(36714) 评论(0) 推荐(3) 编辑
摘要: 第一种情况:iframe中不存在name和id的方法:(通过contentWindow获取) var iframe = document.getElementsByTagName('iframe')[0];var ifr_document = iframe.contentWindow.documen 阅读全文
posted @ 2019-04-12 17:45 bya 阅读(1334) 评论(0) 推荐(0) 编辑