日期:2014-05-17  浏览次数:20615 次

iframe

  <iframe id="iframeTest" width="800" height="1090" frameborder="no" scrolling="no"
  hspace="0" vspace="0" marginheight="0" marginwidth="0" src="b.html">
  </iframe>

我在A.html中导入了b.html 这个页面, 在A.html中能不能控b.html里面内容?,该怎么弄?

------解决方案--------------------
iframeTest不是有个ID了吗?使用这个ID不可以?
------解决方案--------------------
能的,因为你A是主,B是子,直接document.frame["ID"].试试,我给你找下代码。
------解决方案--------------------
http://blog.csdn.net/sixme/article/details/1681388 这个跟你的需求一致。看看就明白了