<html>
<body>
<object id="myObject" width="250" height="200" data="helloworld.swf" style="border:1px solid black"></object>
<p>Click the button to change the width of the object element to 400px.</p>
<button onclick="myFunction()">Try it</button>
<p id="demo"></p>
<script>
function myFunction() {
document.getElementById("myObject").width = "400";
}
</script>
</body>
<!-- Mirrored from www.w3schools.com/jsref/tryit.asp?filename=tryjsref_object_width by HTTrack Website Copier/3.x [XR&CO'2014], Mon, 27 Jan 2020 03:17:47 GMT -->
</html>