MDN self-hosted library · e01.org

HTMLVideoElement: width property

Runnable notebook: every JavaScript, HTML and CSS example on this page executes in a sandboxed local frame. Nothing leaves the browser.

html
<video id="media" width="800" height="600"></video>
js
const el = document.getElementById("media");
console.log(el.width); // Output: 800