使用如下方法可以替换页面中iframe里面的内容:
for (var i=0; i<window.parent.frames.length; i++){ ???//window.parent.frames[i].location="http://w3cschool.cc"; ???window.parent.frames[i].location="www.baidu.com";}
js替换iframe的内容
原文地址:http://www.cnblogs.com/shuilangyizu/p/7787250.html