Get your own website Result Size: 625 x 565
x
 
<!DOCTYPE html>
<html>
<body>
<iframe id="myframe" src="../default.html" height="200" width="250">
<p>Your browser does not support iframes.</p>
</iframe>
<p>Click the button to display the height of the iframe.</p>
<button onclick="myFunction()">Try it</button>
<p id="demo"></p>
<script>
function myFunction() {
  var x = document.getElementById("myframe").height;
  document.getElementById("demo").innerHTML = x;
}
</script>
</body>
<!-- Mirrored from www.w3schools.com/js/tryit.asp?filename=tryjs_iframe_height by HTTrack Website Copier/3.x [XR&CO'2014], Wed, 21 Dec 2022 17:07:10 GMT -->
</html>