You can't. If you load a page from another site inside an
<iframe>
, code running in your page will have no access to it.
Imagine what would happen if it did: you visit a random website, which loads your
(logged-in) bank site in an
<iframe>
, and automates the site to transfer all of your money to the site owner's account.
This is a security restriction. There is no way around it.
In addition, most sites will use a
Content Security Policy[
^], or
the X-Frame-Options header[
^], to prevent you from embedding their site in yours at all.