window对象
2014-01-01 18:37
183 查看
<!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>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<script type="text/javascript">
//window.status="欢迎访问本网站!";
function init(){
var str="";
var i=0;
for(var w in window){
str+=w+"\t";
i++;
if(i%5==0)
str+="\n";
}
window.alert(str);
}
init();
</script>
</head>
<body>
</body>
</html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<script type="text/javascript">
//window.status="欢迎访问本网站!";
function init(){
var str="";
var i=0;
for(var w in window){
str+=w+"\t";
i++;
if(i%5==0)
str+="\n";
}
window.alert(str);
}
init();
</script>
</head>
<body>
</body>
</html>
相关文章推荐
- document、window对象
- JavaScript学习笔记——BOM_window对象
- JavaScript03—Window对象
- JavaScript使用Window对象
- 犀牛——第14章 Window对象
- JavaScript权威指南读书笔记——第十四章 Window对象
- JavaScript使用Window对象
- window对象
- JavaScriptBOM的window对象
- js控制 window对象
- 【Javascript】window对象
- window对象
- 函数和window对象
- javascript的bom对象中的window对象
- JavaScript02_函数和window对象
- contentWindow iframe的contentWindow属性 指定的frame或者iframe所在的window对象
- JS浏览器对象-window对象
- 客户端Javascript学习笔记-----Window对象
- 7 对象操作 8内置对象 9 window对象 (函数练习)
- js关于document和window对象