常用
1.window(代表浏览器窗口 )
2.Navigator(封装了浏览器的信息 )
大多数时候,我们不会使用 navigator对象,因为会被人为修改!
不建议使用这些属性来判断和编写代码
3.screen(代表屏幕尺寸 )
4.location (代表当前页面的URL信息 )
设置新的地址:
location.assign(‘https://www.csdn.net/’)
5.document(代表当前的页面,HTML DOM文档树 )
获取具体文档树节点
document.title
document.title='document'
<dl id="app">
<dt>w1</dt>
<dt>w2</dt>
<dt>w3</dt>
</dl>
<script>
var dl=document.getElementById('app');
</script>
获取cookie
document.cookie
6.history代表浏览器的历史记录
history.back()//后退
history.forward()//前进