Skip to content

Instantly share code, notes, and snippets.

@hyonschu
Created May 23, 2013 22:59
Show Gist options
  • Save hyonschu/5640149 to your computer and use it in GitHub Desktop.
Save hyonschu/5640149 to your computer and use it in GitHub Desktop.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Input Box Test</title>
<script type="text/javascript" src="jquery-1.9.1.min.js"></script>
</head>
<body>
<form>
<input type="text" size="5" value="30" class="times"/>
<button class="go">bing!</button>
<p>
<iframe src = "http://www.bing.com/search?q=" height="100" width="960" class="bingbot" scrolling="no">
</iframe></p>
</form>
<script type="text/javascript">
$(document).ready( function(){
$(".go").click(function(){
for (var i=0; i<10; i++) {
setInterval("$('.bingbot').reload()", 1000);
}
})
})
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment