首页 > 其他 > 详细

2015.7.15

时间:2015-07-16 13:58:47      阅读:126      评论:0      收藏:0      [点我收藏+]

1. Window 对象

1)窗口操作

 moveBy(dx, dy); moveTo(x, y); resizeBy(dw, dh); resizeTo(w, h)

2)浏览器离左边屏幕和上边屏幕的距

1. Window 对象

1)窗口操作

 moveBy(dx, dy); moveTo(x, y); resizeBy(dw, dh); resizeTo(w, h)

2)浏览器离左边屏幕和上边屏幕的距

alert(window.screenLeft);

alert(window.screenTop);

alert(document.body.offsetWidth);

alert(document.body.offsetHeight)

alert(window.screenX); 

alert(window.screenY); 

alert(window.innerWidth);

alert(window.innerHeight);

 

3)打开窗口

Window.open()

关闭窗口

Window.close()

4)系统对话框

alert("Hello world");  comfirm("Are you sure?");  prompt("");

5)状态栏

window.defaultStatus = "测试数据";

window.status = "test";

6)时间间隔和暂停

setTimeout("alert(‘hello world‘)",1000);

clearTimeout();

7)历史

history.back();

history.forward();

2. document对象

1) 通用属性

lastModified  referrer  title  URL

2) 集合

anchors applets embeds forms images links

3. location 对象

location.href   location.assign  location.reload

 

3)打开窗口

Window.open()

关闭窗口

Window.close()

4)系统对话框

alert("Hello world");  comfirm("Are you sure?");  prompt("");

5)状态栏

window.defaultStatus = "测试数据";

window.status = "test";

6)时间间隔和暂停

setTimeout("alert(‘hello world‘)",1000);

clearTimeout();

7)历史

history.back();

history.forward();

2. document对象

1) 通用属性

lastModified  referrer  title  URL

2) 集合

anchors applets embeds forms images links

3. location 对象

location.href   location.assign  location.reload

 

2015.7.15

原文:http://www.cnblogs.com/wangchang2015/p/4650899.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!