Get an element from within an iframe with JavaScript.
Read on how to do it in this tutorial: https://www.w3schools.com/howto/howto_js_element_iframe.asp
Try it yourself here: https://www.w3schools.com/howto/tryit.asp?filename=tryhow_js_element_iframe