MDN self-hosted library · e01.org

HTMLVideoElement: height 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.height); // Output: 600