Created
April 5, 2009 05:50
-
-
Save jrockway/90381 to your computer and use it in GitHub Desktop.
can a parent page remove "langauge features" from iframes?
This file contains 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
<html> | |
<head> | |
<title>Test page</title> | |
</head> | |
<body> | |
<h1>Test page</h1> | |
Hello, world. | |
<script language="javascript"> | |
document.write("Before: " + top); | |
top = null; | |
document.write("After: " + top); | |
document.write("Here is the frame: <iframe src=\"evil2.html\" />"); | |
</script> | |
</body> | |
</html> |
This file contains 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
<html> | |
<head> | |
<title>What happens?</title> | |
</head> | |
<body> | |
<h1>What happens?</h1> | |
<script language="javascript"> | |
document.write("Top: " + top); | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment