Answers for "iframe innerthtml"

1

iframe innerthtml

//Make sure to select 'top' from JS context dropdown menu in chrome devtools console

document.querySelector('iframe class/id').contentWindow.document.querySelector('body').innerHTML
Posted by: Guest on October-14-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language