Created
October 10, 2015 19:01
-
-
Save serverhiccups/fcbe227920226912240f to your computer and use it in GitHub Desktop.
light.js test
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> | |
<script src="//code.jquery.com/jquery-1.11.3.min.js"></script> | |
<script> | |
$("#go").click(function() { | |
var iframe = $("#ifm"); | |
var url = $('#urlbar').val(); | |
$("iframe").attr("src", url); | |
</head> | |
<body> | |
<input id="urlbar" type="text" value="www.google.com"> | |
<button id="go"type='button'>Go</button> | |
<iframe id="ifm" width="750" height="750" name="content" src="www.google.com"></iframe> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment