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?
相关问题
- Is there a limit to how many levels you can nest i
- How to toggle on Order in ReactJS
- void before promise syntax
- Keeping track of variable instances
- Can php detect if javascript is on or not?
iframeInstance.contentWindow.document - this document loaded from SRC url. and vice verse - to get from inner document to parent use: parent.document
I am not so expert but this for your script hints, you can modify and test for your pages.
The outer page:
page1.htm: