Last active
May 6, 2016 15:55
-
-
Save artschwagerb/00561f8ddb3e1e22b19c664fbcba3802 to your computer and use it in GitHub Desktop.
Not Securly iFrame
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> | |
<meta charset=utf-8 /> | |
<title>JS Bin</title> | |
</head> | |
<body> | |
<form> | |
Enter URL to load: <input type="text" id="url" /> | |
<input type="button" value="Load URL" onclick="loadUrl()" /> | |
</form> | |
<iframe id="showUrl" width="100%" height="100%"></iframe> | |
<script type="text/javascript"> | |
function loadUrl() { | |
var url = document.getElementById( 'url' ).value; | |
var showUrl = document.getElementById( 'showUrl' ); | |
showUrl.src = url; | |
} | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment