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
最新评论
大哥资深网民啊,01年我还在念小学。。
看着有点难过。。。
嘿嘿,谢谢老哥,也祝老哥事业蒸蒸日上。
我是你唯一的药学类友情链接网站。 作为一个80后的过来人祝福你,生活越来越好。
这篇文章,我们中学那会老师课堂上念给我们听的。
哈哈哈哈哈,没想到啊, 我有手抄版
嗯,是的
好心办坏事多了去啦
哈哈,是的,我15年末来上海写代码了,一晃三年多过去了,好快。
今天看QQ好友的时候突然看到了你的名字,想起几年前在药品国际注册群挺活跃/厉害的你,现在不见踪影了。就搜了一下,没想到你现在转行去写代码了... (刚才打漏了一句话...)