I have an iframe on my page:
<iframe></iframe>
And there's a div on my page where I'd like to show the javascript console for it:
<div id='console'></div>
So in the iframe, if a script did:
console.log("hello world");
it would show in my console div.
Is there a way to do this? Also, I don't want to open developer tools. I want the console to be shown as part of my page within the html.