Answers for "get data from iframe"

4

iframe getelementbyid

document.getElementById('myframe1').contentWindow.document.getElementById('x')
Posted by: Guest on June-12-2020
1

iframe content fetching

//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