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

The **`data`** property of the
{{domxref("HTMLObjectElement")}} interface returns a {{domxref("DOMString")}} that
reflects the {{htmlattrxref("data", "object")}} HTML attribute, specifying the address
of a resource's data.

## Syntax

```js
var data = HTMLObjectElement.data;
HTMLObjectElement.data;
```

### Value

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

## Specifications

{{Specifications}}

## Browser compatibility

{{Compat}}
