# 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
# TLDR
With HTML5 the iframe sandbox attribute was added.
<iframe src="url" sandbox="allow-forms allow-scripts"></iframe>
1If you want to allow top-level redirects specify
sandbox="allow-top-navigation"
.