Skip to content

Instantly share code, notes, and snippets.

@serverhiccups
Created October 10, 2015 19:01
Show Gist options
  • Save serverhiccups/fcbe227920226912240f to your computer and use it in GitHub Desktop.
Save serverhiccups/fcbe227920226912240f to your computer and use it in GitHub Desktop.
light.js test
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