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?