Can't access content of another frame in Chrome

后端 未结 4 517
感动是毒
感动是毒 2021-01-17 05:12

I have two frames. The pages in both frames come from the same domain (either localhost or a live domain - both using the same protocol).

The first frame needs to ac

4条回答
  •  悲哀的现实
    2021-01-17 06:07

    Use parent.frames["xsample"] to access the frame.

    Implicit references to named elements on the global object is not standardized.

    On a different note, never do setTimeout("doMoreWork(), 1000)" as this forces the VM to use eval to execute the code.
    Use setTimeout(doMoreWork, 1000) which is the proper way to do it.

提交回复
热议问题