JS-window attribute description

Source: Internet
Author: User

The window object has the following attributes:

Statusstatusbarstatusbar. visibledefaultstatuslocationlocationbarlocationbar. visibleselfnameclosedframesframes. Capacity. Capacity. visiblescrollbarscrollbar. visibletoolbartoolbar. visibletop1. status attribute
Syntax format: window. Status = string
Function: set or display the current status bar in the browser window. Tip: You can use this property to set the browser window status bar information. 2. statusbar attributes
Syntax format: window. statusbar. Attribute
Function: The statusbar attribute is an object used to access its own visible attribute to determine whether the status bar is visible. Note: ie5.5 does not support this attribute. 3. statusbar. visible attribute
Syntax format: window. statusbar. Visible
Function: Check whether the status bar is visible. If visible, true is returned. Otherwise, false is returned. Note: ie5.5 does not support this attribute. 4. defaultstatus attributes
Syntax format: window. defaultstatus [= string]
Function: The defaultstatus attribute value is the default display information of the status bar in the browser window. 5. Location attribute
Syntax format: window. Location = URL
Function: Provides the URL Information of the current window or specifies the URL to open the window. 6. locationbar attributes
Syntax format: window. locationbar. Attribute
Function: The locationbar attribute can also be viewed as a sub-object. This attribute is used to obtain its own visible attribute to determine whether the location bar is visible. So far, this property has only one sub-attribute: visible. Note: ie5.5 does not support this attribute. 7. locationbar. visible attribute
Syntax format: window. locationbar. Visible
Function: whether the returned position bar is visible. If visible, true is returned. Otherwise, false is returned. Note: ie5.5 does not support this attribute. 8. Self attributes
Syntax format: window. Self. Method
Window. Self. Properties
Function: This property contains the flag of the current window. With this property, you can ensure that when multiple windows are opened, the functions or properties in the current window are correctly called without confusion. 9. Name attributes
Syntax format: window. Name = Name
Function: return the window name, which is specified when the window. open () method creates a new window. In javascript1.0, this attribute can only be used to read the window name. In javascript1.1, you can use this attribute to specify a name for a window not created using the window. open () method. 10. Closed attributes
Syntax format: window. Closed
Function: The closed attribute is used to return whether the instance in the specified window is closed. If it is closed, true is returned, and flase is returned. 11. Frames attributes
Syntax format: window. Frames ["framework name"]
Window. Frames [value]
Function: The frames attribute is an array used to store each sub-window (framework) instance created by an element in the document, the subscript can be a sequence number or a name specified by the name attribute of the frame element. 12. frames. Length attribute
Syntax format: window. frames. Length
Function: the frames. Length attribute is used to show the number of subwindow (FRAME) instances in the document. 13. Length attribute
Syntax format: window. Length
Function: return the number of subwindows in a window. The value of this attribute is the same as that of window. Frame. length. 14. document attributes
Syntax format: zookeeper Doc ument. Event
Window.doc ument. Method
Specified parameter Doc ument. Attribute
Function: the sub-object document of the window object is the core object of JavaScript. An instance is created when the body element is encountered in the script. 15. History attributes
Syntax format: window. History [value]
Window. History. Method ()
Window. History. Properties
The window object sub-object history is one of the core JavaScript objects. This attribute contains an array of the names and URLs of accessed pages. 16. innerheight attribute
Syntax format: window. innerheight = Value
Function: return or specify the pixel height of the document in the browser window. This height does not include any toolbar or page modification height that makes up the window. Note: ie5.5 does not support this attribute. 17. innerwidth attribute
Syntax format: window. innerheight = Value
Function: return or specify the pixel width of the document in the browser window. This width does not include the page width of any toolbar or window. Note: ie5.5 does not support this attribute. 18. menubar attributes
Syntax format: window. menubar. Attribute
Function: the menubar attribute can also be viewed as a sub-object. This attribute is used to obtain its own visible attribute to determine whether the menu bar is visible. So far, this property has only one sub-attribute: visible. Note: ie5.5 does not support this attribute. 19. menubar. Visible attributes
Syntax format: window. menubar. Visible
Function: the menubar. visible attribute is used to return whether the menu bar is visible. If visible, true is returned, and false is returned. Note: ie5.5 does not support this attribute. 20. Opener attributes
Syntax format: window. Opener
Window. opener. Method
Window. opener. Attribute
Function: The opener attribute is associated with the parent window that opens the window. when accessing the operer attribute in the Child window, the parent window is returned. This attribute allows you to use methods and attributes in the parent window object. 21. outerheight attribute
Syntax format: window. outerheight
Function: The outerheight attribute is used to access the pixel height of the browser window, which includes the height of the toolbar and decorative edge. Note: ie5.5 does not support this attribute. 22. outerwidth attribute
Syntax format: window. outerwidth
Function: The outerwidth attribute is used to access the pixel width of the browser window, which includes the width of the toolbar and decorative edge. Note: ie5.5 does not support this attribute. 23. pagexoffset attribute
Syntax format: window. pagexoffset = Value
Function: Specify the current horizontal pixel position in the upper left corner of the document in the browser window. Before using moveTo to move a window, you can use this attribute to determine whether to move the window. This attribute returns the current position of the visible document relative to the entire page. Note: ie5.5 does not support this attribute. 24. pageyoffset attributes
Syntax format: window. pageyoffset = Value
Function: Specify the current vertical pixel position in the upper left corner of the document in the browser window. Before using moveTo to move a window, you can use this attribute to determine whether to move the window. This attribute returns the current position of the visible document relative to the entire page. Note: ie5.5 does not support this attribute. 25. parent attributes
Syntax format: window. Parent. Frames [value]
Window. Parent. framesname
Function: access the parent window of each sub-window (Multi-frame. 26. personalbar attributes
Syntax format: window. personalbar. Attribute
Function: The personalbar attribute is also an object used to access its visible attribute to determine whether the personal bar is visible. Note: ie5.5 does not support this attribute. 27. personalbar. Visible attributes
Syntax format: window. personalbar. Visible
Function: determines whether the personal column is visible. If visible, true is returned. Otherwise, false is returned. Note: ie5.5 does not support this attribute. 28. scrollbars attributes
Syntax format: window. scrollbars. Attribute
Function: The scrollbars attribute is also an object used to access its visible attribute to determine whether the scroll bar is visible. Note: ie5.5 does not support this attribute. 29. scrollbars. visible attribute
Syntax format: window. scrollbars. Visible
Function: scrollbars. Visible is used to determine whether the scroll bar is visible. If visible, true is returned. Otherwise, false is returned. Note: ie5.5 does not support this attribute. 30. toolbar attributes
Syntax format: window. toolbar. Attribute
Function: the toolbar attribute is an object used to access its own visible attribute to determine whether the toolbar is visible. Note: ie5.5 does not support this attribute. 31. toolbar. visible attribute
Syntax format: window. toolbar. Visible
Function: the toolbar. visible attribute is used to check whether the toolbar is visible. If visible, true is returned. Otherwise, false is returned. Note: ie5.5 does not support this attribute. 32. Top attributes
Syntax format: window. Top. Frames [value]
Window. Top. framename
Window. Top. Method ()
Window. Top. Properties
Function: The top attribute of the window object is used to contain information about the top-level windows of all sub-Windows (Multi-frame) loaded into the browser.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.