Window

作者: 一只小丫丫 | 来源:发表于2019-12-26 21:10 被阅读0次

这里介绍一下Window

screen

屏幕

    width宽
    height高
    availWidth   可用宽
    availWidth   可用高

history

历史记录

    back()后退
    forWard()前进
    go(2)前进两步
    go(-3) 后退三步
    length 历史记录的长度

location

属性:href地址
方法
        reload()刷新
        assign()跳转  有历史记录
        replace()跳转   没有历史记录
        location.href="  ";

navigator

useAgent 浏览器头信息可识别当前浏览器是什么浏览器

open(url,name,feature)

打开一个新窗口

    url  打开的地址
    name  窗口名称
    feature “ width=100,height=100,top=200,left=200”

相关文章

网友评论

      本文标题:Window

      本文链接:https://www.haomeiwen.com/subject/tpgloctx.html