获取子框架的内容

来源:互联网 发布:淘宝海外代购吉他店铺 编辑:程序博客网 时间:2024/05/17 08:08

 

document.getElementById(frameId).contentWindow.document.getElementById(控件ID);

document.getElementById(frameId).contentWindow.document.getElementsByTagName("body")[0];