0

I am trying to display a p tag inside an iframe. Both files are on my desktop, so there is no issue with different domains. I am able to visualize the p tag in IE but not in chrome or firefox running the following line

    document.getElementById('iframe').contentWindow.document.getElementById('p').innerHTML =" ";

Is there a cross-browser alternative to this approach?

rafacardosoc
  • 251
  • 1
  • 7
  • 16
  • [Getting Contents of Iframe with Pure JavaScript](http://stackoverflow.com/questions/16755347/getting-contents-of-iframe-with-pure-javascript) – Brian Dillingham Oct 02 '14 at 21:12
  • [jQuery/JavaScript: accessing contents of an iframe](http://stackoverflow.com/questions/364952/jquery-javascript-accessing-contents-of-an-iframe) – Brian Dillingham Oct 02 '14 at 21:14
  • hi @Brian, unfortunately the links you provided did not solve my problem... any other thoughts? – rafacardosoc Oct 03 '14 at 02:14

0 Answers0