Created
May 23, 2013 05:12
-
-
Save jasya/5632884 to your computer and use it in GitHub Desktop.
请求
This file contains 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> | |
<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> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
按时打算