<html>
<body>
<object id="myObject" width="250" height="200" data="helloworld.swf"></object>
<p>Click the button to display the URL of the object.</p>
<button onclick="myFunction()">Try it</button>
<p id="demo"></p>
<script>
function myFunction() {
var x = document.getElementById("myObject").data;
document.getElementById("demo").innerHTML = x;
}
</script>
</body>
<!-- Mirrored from www.w3schools.com/jsref/tryit.asp?filename=tryjsref_object_data by HTTrack Website Copier/3.x [XR&CO'2014], Wed, 05 Jun 2019 14:47:47 GMT -->
</html>