本帖最后由 showbo 于 2014-01-14 15:53:14 编辑

解决方案 »

  1.   

    你的意思是iframe不同源,则parent是拿不到里面的内容是吧?我自己测试下来是没能拿到,但不能证明拿不到。如果现在浏览器都把这个作为标准去实现了,那我就没这个问题了。
      

  2.   

    在mozilla网站上找到一段话:
    Scripts trying to access a frame's content are subject to the same-origin policy, and cannot access most of the properties in the other window object if it was loaded from a different domain. This also applies to a script inside a frame trying to access its parent window. Cross-domain communication can still be achieved with window.postMessage.可能主流浏览器都实现了同源原则。
      

  3.   

    IE6-一下也许有可能,标准浏览器你就不用想了,IE6-以上也不能操作跨域的iframe