window 对象

1、在页面中载入新页面:location.assgin("");  location.replace();后者会删除以前的页面记录

location.reload();//重新载入当前页面

location="#middle";//滚动到文档的相应位置

2、window的history    history.back()   history.forward()  history.go(-2)///向前或向后

3、浏览器嗅探 Navigator的四个属性:appName="Microsoft Internet Explorer" || "Netscape";

                                                  userAgent appVersion platform

4、window的screen对象:

screen.width screen.height //窗口的大小    screen.availwidth//实际可以显示的大小

5、window的对话框

alert()  prompt() confirm()   

6、window.open("","_top","width:",flase); window.close();

parent.history.back();

7/window.frames[]可以来引用窗体中的iframe

var f=parent.B.f;

 

转载于:https://www.cnblogs.com/dunken/p/3978471.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值