Easy Tutorial
❮ Prop Video Preload Dom Obj Style ❯

HTML DOM referrer Property


Definition and Usage

The referrer property returns the URL of the source document that loaded the current document.

If the current document is not accessed via a hyperlink, it returns null. This property allows client-side JavaScript to access the HTTP referrer header.

Syntax


Browser Support

All major browsers support the referrer property.


Example

Return the source URL of the current document:


❮ Prop Video Preload Dom Obj Style ❯