Skip to content

Commit

Permalink
Corrected definition of HTMLIFrameElement's src property (mdn#31080)
Browse files Browse the repository at this point in the history
* replaced incorrect definition

1. replaced incorrect definition of HTMLIFrameElement's src property with the definition at https://developer.mozilla.org/en-US/docs/Web/API/HTMLIFrameElement#:~:text=HTMLIFrameElement.src

2. renamed two variables in the Syntax section accordingly

* typography; remove unneeded browser version info

---------

Co-authored-by: wbamberg <[email protected]>
  • Loading branch information
2 people authored and dipikabh committed Jan 17, 2024
1 parent 5bd1a7c commit 33f1b0d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions files/en-us/web/api/htmliframeelement/src/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@ browser-compat: api.HTMLIFrameElement.src
{{APIRef}}

The **`HTMLIFrameElement.src`**
property reflects the HTML [`referrerpolicy`](/en-US/docs/Web/API/HTMLIFrameElement/referrerPolicy) attribute of the
{{HTMLElement("iframe")}} element defining which referrer is sent when fetching the
resource.
A string that reflects the [`src`](/en-US/docs/Web/HTML/Element/iframe#src) HTML attribute, containing the address of the content to be embedded.

Note that programmatically removing an `<iframe>`'s src attribute (e.g. via {{domxref("Element.removeAttribute()")}}) causes `about:blank` to be loaded in the frame.

## Syntax

```js-nolint
refStr = iframeElt.src
iframeElt.src= refStr
src = iframeElt.src
iframeElt.src= src
```

## Example
Expand Down

0 comments on commit 33f1b0d

Please sign in to comment.