Skip to content

Instantly share code, notes, and snippets.

@jasya
Created May 23, 2013 05:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jasya/5632884 to your computer and use it in GitHub Desktop.
Save jasya/5632884 to your computer and use it in GitHub Desktop.
请求
<!DOCTYPE html>
<html>
<title>master</title>
<style>
</style>
<body>
<iframe id="frame" src="http://www.baidu.com"></iframe>
<script>
var flag = 0,
listpage = ["http://www.cnblogs.com/lhb25/","http://www.douban.com","http://www.v2ex.com/"];
frame = document.getElementById("frame");
frame.onload = function (){
alert("完成准备加载下一个页面")//可以在这里写入你需要的其他行为
frame.src = listpage[flag];
if(flag===2){
this.onload = undefined;
}
flag++;
}
</script>
</body>
</html>
@jasya
Copy link
Author

jasya commented May 23, 2013

按时打算

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment