javascript - iframe

js iframe

documentation

iframe : developer.mozilla.org

questions

iframe parent redirection

Why can a child redirect a parent frame? : stackoverflow.com

How to prevent IFRAME from redirecting top-level window : stackoverflow.com

Using JS how can I stop child Iframes from redirecting or at least prompt users about the redirect : stackoverflow.com

TLDR

With HTML5 the iframe sandbox attribute was added.

<iframe src="url" sandbox="allow-forms allow-scripts"></iframe>

If you want to allow top-level redirects specify sandbox="allow-top-navigation".

results for ""

    No results matching ""