Dynamic iframe corresponding to 100vh in HTML embedded link?

I am embedding a link to a web page using an iframe with no height or width settings. What would the iframe embed code be if I wanted to embed the iframe where the size of the iframe will also be the size of the vh. As an example I am hosting the html code for the link I am embedding and I need the height of the iframe to correspond to the 100vh that is referenced in the HTML code.

<iframe src='https://www.google.com' ></iframe>

vs.

<iframe src='https://www.google.com' width=?  height=? ></iframe>

26 thoughts on “Dynamic iframe corresponding to 100vh in HTML embedded link?”

Leave a Comment