html - How to access the XML document in an iFrame? -


I have an IFrame on my page that is displaying an XML document.

  & lt; Iframe id = "iFrame2" name = "iframe 2" width = "100%" height = "100%" & gt;  

I need to access the XML document in iframe from parent page. How do i do this

When I try:

  console.log (iFrame2.document);  

I get the following error:

  to allow for & lt; Http: // localhost: 3000 & gt; Property from Window.document & lt; Http: //www.imageshack.us> Receive from  

see comp.lang.javascript FAQ:


Comments