Skip to content

Instantly share code, notes, and snippets.

@artschwagerb
Last active May 6, 2016 15:55
Show Gist options
  • Save artschwagerb/00561f8ddb3e1e22b19c664fbcba3802 to your computer and use it in GitHub Desktop.
Save artschwagerb/00561f8ddb3e1e22b19c664fbcba3802 to your computer and use it in GitHub Desktop.
Not Securly iFrame
<!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