---
title: HTMLObjectElement.height
slug: Web/API/HTMLObjectElement/height
tags:
  - API
  - HTML DOM
  - HTMLObjectElement
  - NeedsExample
  - Property
  - Reference
  - height
browser-compat: api.HTMLObjectElement.height
---
{{APIRef("HTML DOM")}}

The **`height`** property of the
{{domxref("HTMLObjectElement")}} interface Returns a {{domxref("DOMString")}} that
reflects the {{htmlattrxref("height", "object")}} HTML attribute, specifying the
displayed height of the resource in CSS pixels.

## Syntax

```js
var String = HTMLObjectElement.height;
HTMLObjectElement.height = String;
```

### Value

A {{domxref('DOMString')}}.

## Specifications

{{Specifications}}

## Browser compatibility

{{Compat}}
