Property | Description |
---|---|
closed | Returns a Boolean value indicating whether or not a window has been closed |
defaultStatus | Sets or returns the default text in the status bar of a window The defaultStatus and status properties can be set only if users have modified their browsers to allow it (very unlikely). |
document | Returns the document object for the window |
frames | Returns an array of all the frames and iframes in the window |
history | Returns the history object for the window The history object cannot be read from (so you cannot see where your visitors have been surfing), but it supports the length property to determine how long the history is, and the back, forward, and go methods to navigate to specific pages in the history. |
innerHeight | Sets or returns the inner height of a window’s content area When you need to know how much space there is available in a current window of the web browser, just read the values in window.innerHeight and window.innerWidth. |
innerWidth | Sets or returns the inner width of a window’s content area When you need to know how much space there is available in a current window of the web browser, just read the values in window.innerHeight and window.innerWidth. |
length | Returns the number of frames and iframes in a window |
location | Returns the location object for the window |
name | Sets or returns the name of a window |
navigator | Returns the navigator object for the window |
opener | Returns a reference to the window that created the window |
outerHeight | Sets or returns the outer height of a window, including tool and scroll bars |
outWidth | Sets or returns the outer width of a window, including tool and scroll bars |
pageXOffset | Returns the number of pixels the document has been scrolled horizontally from the left of the window |
pageYOffset | Returns the number of pixels the document has been scrolled vertically from the top of the window |
parent | Returns the parent window of a window |
screen | Returns the screen object for the window The screen object supports the read-only properties availHeight, availWidth, colorDepth, height, pixelDepth, and width, and is therefore great for determining information about the user’s display. |
screenLeft | Returns the x coordinate of the window relative to the screen in all recent browsers except Mozilla Firefox (for which you should use screenX) |
screenTop | Returns the y coordinate of the window relative to the screen in all recent browsers except Mozilla Firefox (for which you should use screenY) |
screenX | Returns the x coordinate of the window relative to the screen in all recent browsers except Opera, which returns incorrect values; supported in versions of IE prior to 9 |
screenY | Returns the y coordinate of the window relative to the screen in all recent browsers except Opera, which returns incorrect values; supported in versions of IE prior to 9 |
self | Returns the current window |
status | Sets or returns the text in the status bar of a window The defaultStatus and status properties can be set only if users have modified their browsers to allow it (very unlikely). |
top | Returns the top browser window |
Common Window Properties
文章名称:《Common Window Properties》
文章链接:https://www.orzzone.com/common-window-properties.html
商业联系:yakima.public@gmail.com
本站大部分文章为原创或编译而来,对于本站版权文章,未经许可不得用于商业目的,非商业性转载请以链接形式标注原文出处。
本站内容仅供个人学习交流,不做为任何投资、建议的参考依据,因此产生的问题需自行承担。
文章链接:https://www.orzzone.com/common-window-properties.html
商业联系:yakima.public@gmail.com
本站大部分文章为原创或编译而来,对于本站版权文章,未经许可不得用于商业目的,非商业性转载请以链接形式标注原文出处。
本站内容仅供个人学习交流,不做为任何投资、建议的参考依据,因此产生的问题需自行承担。
相关推荐
- 前端入门非典型指南
- 使用不同的方法来创建对象和生成原型链
- 按钮点击回调的节流处理
- Vue防快速连击指令&权限指令的坑
- 公共请求的封装
- 如何在老项目里推行ESLint代码风格检测
- Avoid replacing instance root $data. Use nested data properties instead
- webpack4项目优化实战
- 前端技术选型可能会考虑的一些点
- 从零搭建一个前端项目
- Element-UI中Select下拉框组件添加虚拟列表
- 前端高端岗位面试总结
- 编译要1小时的Webpack项目优化思路和条件编译方案
- node和浏览器环境下同一段代码输出结果不同
- 识别webpack路径别名(alias)
- lin-cms-koa源码阅读之:目录结构
- lin-cms-koa源码阅读之:入口和启动
- 如何高亮模版代码
- TypeError: Attempted to assign to readonly property
- 混合APP内本地H5资源包增量包缩包实践总结