Created
January 27, 2016 10:39
-
-
Save RauliL/6e84e0a0fffd54abf7bb to your computer and use it in GitHub Desktop.
<iframe>ception
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>iframeception</title> | |
<meta charset="utf-8"> | |
<style> | |
* { | |
box-sizing: border-box; | |
margin: 0; | |
padding: 1%; | |
} | |
html, body { | |
height: 100%; | |
} | |
iframe { | |
width: 100%; | |
height: 100%; | |
} | |
</style> | |
</head> | |
<body> | |
<script> | |
var f = document.createElement("iframe"); | |
f.src = "data:text/html;base64," + btoa(document.documentElement.outerHTML + Math.random()); | |
document.body.appendChild(f); | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment