-
Notifications
You must be signed in to change notification settings - Fork 22.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
init docs for {HTMLEmbedElement,HTMLIFrameElement}.{width,height} (#3…
…1701) * add docs * fix links * add example * update desc * update value
- Loading branch information
1 parent
61ab1d0
commit b63cdd8
Showing
4 changed files
with
160 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
--- | ||
title: "HTMLEmbedElement: height property" | ||
short-title: height | ||
slug: Web/API/HTMLEmbedElement/height | ||
page-type: web-api-instance-property | ||
browser-compat: api.HTMLEmbedElement.height | ||
--- | ||
|
||
{{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" /> | ||
``` | ||
|
||
```js | ||
const el = document.getElementById("el"); | ||
console.log(el.height); // Output: '600' | ||
``` | ||
|
||
## Specifications | ||
|
||
{{Specifications}} | ||
|
||
## Browser compatibility | ||
|
||
{{Compat}} | ||
|
||
## See also | ||
|
||
- {{domxref("HTMLCanvasElement.height")}} | ||
- {{domxref("HTMLImageElement.height")}} | ||
- {{domxref("HTMLObjectElement.height")}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
--- | ||
title: "HTMLEmbedElement: width property" | ||
short-title: width | ||
slug: Web/API/HTMLEmbedElement/width | ||
page-type: web-api-instance-property | ||
browser-compat: api.HTMLEmbedElement.width | ||
--- | ||
|
||
{{APIRef("HTML DOM")}} | ||
|
||
The **`width`** property of the {{domxref("HTMLEmbedElement")}} interface returns a string that reflects the `width` attribute of the {{HTMLElement("embed")}} element, indicating the displayed width of the resource in CSS pixels. | ||
|
||
## Value | ||
|
||
A string indicating the displayed width of the resource in CSS pixels. | ||
|
||
## Examples | ||
|
||
```html | ||
<embed id="el" width="800" height="600" /> | ||
``` | ||
|
||
```js | ||
const el = document.getElementById("el"); | ||
console.log(el.width); // Output: '800' | ||
``` | ||
|
||
## Specifications | ||
|
||
{{Specifications}} | ||
|
||
## Browser compatibility | ||
|
||
{{Compat}} | ||
|
||
## See also | ||
|
||
- {{domxref("HTMLCanvasElement.width")}} | ||
- {{domxref("HTMLImageElement.width")}} | ||
- {{domxref("HTMLObjectElement.width")}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
--- | ||
title: "HTMLIFrameElement: height property" | ||
short-title: height | ||
slug: Web/API/HTMLIFrameElement/height | ||
page-type: web-api-instance-property | ||
browser-compat: api.HTMLIFrameElement.height | ||
--- | ||
|
||
{{APIRef("HTML DOM")}} | ||
|
||
The **`height`** property of the {{domxref("HTMLIFrameElement")}} interface returns a string that reflects the `height` attribute of the {{HTMLElement("iframe")}} element, indicating the height of the frame in CSS pixels. | ||
|
||
## Value | ||
|
||
A string indicating the height of the frame in CSS pixels. | ||
|
||
## Examples | ||
|
||
```html | ||
<iframe id="el" width="800" height="600"></iframe> | ||
``` | ||
|
||
```js | ||
const el = document.getElementById("el"); | ||
console.log(el.height); // Output: '600' | ||
``` | ||
|
||
## Specifications | ||
|
||
{{Specifications}} | ||
|
||
## Browser compatibility | ||
|
||
{{Compat}} | ||
|
||
## See also | ||
|
||
- {{domxref("HTMLCanvasElement.height")}} | ||
- {{domxref("HTMLImageElement.height")}} | ||
- {{domxref("HTMLObjectElement.height")}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
--- | ||
title: "HTMLIFrameElement: width property" | ||
short-title: width | ||
slug: Web/API/HTMLIFrameElement/width | ||
page-type: web-api-instance-property | ||
browser-compat: api.HTMLIFrameElement.width | ||
--- | ||
|
||
{{APIRef("HTML DOM")}} | ||
|
||
The **`width`** property of the {{domxref("HTMLIFrameElement")}} interface returns a string that reflects the `width` attribute of the {{HTMLElement("iframe")}} element, indicating the width of the frame in CSS pixels. | ||
|
||
## Value | ||
|
||
A string indicating the width of the frame in CSS pixels. | ||
|
||
## Examples | ||
|
||
```html | ||
<iframe id="el" width="800" height="600"></iframe> | ||
``` | ||
|
||
```js | ||
const el = document.getElementById("el"); | ||
console.log(el.width); // Output: '800' | ||
``` | ||
|
||
## Specifications | ||
|
||
{{Specifications}} | ||
|
||
## Browser compatibility | ||
|
||
{{Compat}} | ||
|
||
## See also | ||
|
||
- {{domxref("HTMLCanvasElement.width")}} | ||
- {{domxref("HTMLImageElement.width")}} | ||
- {{domxref("HTMLObjectElement.width")}} |