<html>
<body>
<embed id="myEmbed" src="helloworld.swf">
<p>Click the button to return the value of the src attribute of the embed element.</p>
<button onclick="myFunction()">Try it</button>
<p id="demo"></p>
<script>
function myFunction() {
var x = document.getElementById("myEmbed").src;
document.getElementById("demo").innerHTML = x;
}
</script>
</body>
<!-- Mirrored from www.w3schools.com/jsref/tryit.asp?filename=tryjsref_embed_src by HTTrack Website Copier/3.x [XR&CO'2014], Mon, 05 Sep 2022 15:53:01 GMT -->
</html>