Embed height Property - Return the height of an embedded file: - Javascript DOM HTML Element

Javascript examples for DOM HTML Element:Embed

Description

Embed height Property - Return the height of an embedded file:

Demo Code

ResultView the demo in separate window

<!DOCTYPE html>
<html>
<body>

<embed id="myEmbed" src="helloworld.swf" width="200" height="200" style="border:1px solid">

<button onclick="myFunction()">Test</button>

<script>
function myFunction() {/*from ww w  .  jav a 2  s  . c om*/
    var v = document.getElementById("myEmbed").height;
    console.log(v);
}
</script>

</body>
</html>

Related Tutorials