您好,欢迎访问一九零五行业门户网

iframe提取与改变父页面元素_html/css_WEB-ITnose

一:利用jquery方法获得
1:取值
$(window.parent.document).find(#second_navigator).html();
2:改变父页面元素
$(window.parent.document).find(#second_navigator).html(“我是从iframe里传来的值”);
二:javascript方法
1:取值
window.parent.document.getelementbyid(second_navigator).innerhtml;
2:改变父页面元素
window.parent.document.getelementbyid(second_navigator).innerhtml=我是从iframe里传来的值;
其它类似信息

推荐信息