HTML <iframe> with referrerpolicy Attribute

HTML <iframe> with referrerpolicy Attribute

The referrerpolicy attribute specifies whether or not to sent http referrer information.

Example

HTML Online Editor
<!DOCTYPE html> <html> <body> <iframe src="/js" referrerpolicy="no-referrer-when-downgrade"> <p>Your browser does not support iframes.</p> </iframe> </body> </html>

Attribute Value

In the below table:

The From heading column refers to the page that contains an <iframe>

The To heading column refers to the source (src) of an <iframe>

The Referrer heading column refers to the page that will be sent as a referrer to the source (src) of an <iframe>.

PolicyFromToReferrer
no-referrerhttps://example.com/page.htmlany domain or pathno referrer
no-referrer-when-downgradehttps://example.com/page.htmlhttps://example.com/otherpage.htmlhttps://example.com/page.html
no-referrer-when-downgradehttps://example.com/page.htmlhttps://wikimass.comhttps://example.com/page.html
no-referrer-when-downgradehttps://example.com/page.htmlhttp://example.orgno referrer
originhttps://example.com/page.htmlany domain or pathhttps://example.com/
origin-when-cross-originhttps://example.com/page.htmlhttps://example.com/otherpage.html https://example.com/page.html
origin-when-cross-originhttps://example.com/page.htmlhttps://wikimass.comhttps://example.com/
origin-when-cross-originhttps://example.com/page.htmlhttp://example.com/page.htmlhttps://example.com/
same-originhttps://example.com/page.htmlhttps://example.com/otherpage.htmlhttps://example.com/page.html
same-originhttps://example.com/page.htmlhttps://wikimass.comno referrer
strict-originhttps://example.com/page.htmlhttps://wikimass.comhttps://example.com/
strict-originhttps://example.com/page.htmlhttp://example.orgno referrer
strict-originhttps://example.com/page.htmlany domain or pathhttp://example.com/
strict-origin-when-cross-originhttps://example.com/page.htmlhttps://example.com/otherpage.htmlhttps://example.com/page.html
strict-origin-when-cross-originhttps://example.com/page.htmlhttps://wikimass.comhttps://example.com/
strict-origin-when-cross-originhttps://example.com/page.htmlhttp://example.orgno referrer
unsafe-urlhttps://example.com/page.html?q=56789any domain or pathhttps://example.com/page.html?q=56789

Reminder

Hi Developers, we almost covered 99.5% of HTML Tutorials with examples for quick and easy learning.

We are working to cover every Single Concept in HTML.

Please do google search for:

Join Our Channel

Join our telegram channel to get an instant update on depreciation and new features on HTML, CSS, JavaScript, jQuery, Node.js, PHP and Python.

This channel is primarily useful for Full Stack Web Developer.

Meet the Author