javascript - iframe

js iframe


iframe :


iframe parent redirection

Why can a child redirect a parent frame? :

How to prevent IFRAME from redirecting top-level window :

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


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 ""