Back to Content

HTMLEmbedElement: height property

files/en-us/web/api/htmlembedelement/height/index.md

latest869 B
Original Source

{{APIRef("HTML DOM")}}

The height property of the {{domxref("HTMLEmbedElement")}} interface returns a string that reflects the height attribute of the {{HTMLElement("embed")}} element, indicating the displayed height of the resource in CSS pixels.

Value

A string indicating the displayed height of the resource in CSS pixels.

Examples

html
<embed id="el" width="800" height="600" src="https://example.com" />
js
const el = document.getElementById("el");
console.log(el.height); // Output: '600'

Specifications

{{Specifications}}

Browser compatibility

{{Compat}}

See also

  • {{domxref("HTMLCanvasElement.height")}}
  • {{domxref("HTMLIFrameElement.height")}}
  • {{domxref("HTMLImageElement.height")}}
  • {{domxref("HTMLObjectElement.height")}}
  • {{domxref("HTMLSourceElement.height")}}
  • {{domxref("HTMLVideoElement.height")}}