How to get iFrame src content using javascript?

后端 未结 3 1724
半阙折子戏
半阙折子戏 2020-12-19 07:07

I have an iFrame, content of which is inside another iFrame. I want to get the inside iFrame\'s src content. How can I do this using javascript?

3条回答
  •  臣服心动
    2020-12-19 07:18

    iframeInstance.contentWindow.document - this document loaded from SRC url. and vice verse - to get from inner document to parent use: parent.document

提交回复
热议问题