标签:
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
标签:
原文地址:http://www.cnblogs.com/wangchang2015/p/4650899.html