1

I have a iframe whose content will be exposed by iframeObject.contentWindow. This returns a window object, according to mozilla developer network

this window object to access the iframe's document and it's internal dom.

However, I cannot figure out how to expose the document from the window object.

Kevlwig
  • 133
  • 2
  • 11
  • You're asking how to write `iframeObject.contentWindow.document`??? You've tagged this with [same-origin-policy], the other window isn't on the same domain? – Teemu Mar 29 '17 at 14:26

1 Answers1

1

You can access the contentDocument property

HTMLIFrameElement.contentDocument

Returns a Document, the active document in the inline frame's nested browsing context.

Jon Wood
  • 1,531
  • 14
  • 24