Both answers are perfectly correct, but there are some drawbacks. Instead, this should work in any modern browser *:
<style>
body,html{ height: 100%; margin:0; padding:0; overflow:hidden; }
</style>
<iframe src="some.html" style="position:relative; border:0; height:100%; width:100%;">
<p>Your browser does not support iframes.</p>
Watch the demo
See the browser compatibilityseamless property .
* To support HTML4, add them to the iframe: frameborder="0" height="100%" width="100%"
source
share