how to use element from iframe by id in current page code example
Example: iframe getelementbyid
document.getElementById('myframe1').contentWindow.document.getElementById('x')
document.getElementById('myframe1').contentWindow.document.getElementById('x')