Back to Content

NotRestoredReasons: src property

files/en-us/web/api/notrestoredreasons/src/index.md

latest786 B
Original Source

{{APIRef("Performance API")}}{{SeeCompatTable}}

The src read-only property of the {{domxref("NotRestoredReasons")}} interface returns a string representing the path to the source of the {{htmlelement("iframe")}} the document is contained in (for example <iframe src="b.html">).

Value

A string.

If the document is not in an <iframe>, src will return null.

Examples

See Monitoring bfcache blocking reasons for examples.

Specifications

{{Specifications}}

Browser compatibility

{{Compat}}

See also