Last active
December 18, 2018 17:57
-
-
Save josephabrahams/46a0badc9e35c943b5a65fe95bb98526 to your computer and use it in GitHub Desktop.
Redirect parent window from an iframe action
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>Child</title> | |
</head> | |
<body> | |
<h1>Child</h1> | |
<a href="https://example.com/" target="_top">Link</a> | |
</body> | |
</html> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>Parent</title> | |
</head> | |
<body> | |
<h1>Parent</h1> | |
<iframe src="iframe.html"> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://stackoverflow.com/a/581428