window~JS for Web

The English + unfinished
window object represents a window containing a DOM document, and its document property points to the DOM document loaded in the window. Use the document.defaultView property to get the window where the specified document is located.
The window object implements the Window interface, which inherits from the AbstractView interface
. In tabbed browsers (such as Firefox), each tab has its own window object
. Methods such as window.resizeTo and window.resizeBy act on the entire window instead of the window The tag to which the object belongs
inherits properties from the EventTarget interface

Window.applicationCache read only

The OfflineResourceList object provides access to the window's offline resources.

Window.crypto read only

Returns the browser crypto object.

Window.dialogArguments read only

Gets the parameters passed to the window (if it is a dialog) when window.showModalDialog() is called. This is an nsIArray.

Window.document read only

Returns a reference to the document contained in the current window.

Window.frameElement read only

Returns the element in which the window is embedded, or null if the window is not embedded.

Window.frames read only

Returns an array of all child forms in the current window.

Window.fullScreen

This property indicates whether the window is displayed in full screen.

Window.history read only

Returns a reference to the history object.

Window. innerHeight

Gets the height of the browser window's content area, including the horizontal scroll bar (if any).

window.innerWidth

Gets the width of the browser window's content area, including the vertical scrollbar (if any).

Window.isSecureContext read only

Indicates whether the context can use the characteristics of the security context

Window.length read only

Returns the number of frames in the window. See window.frames.

Window.location read only

Gets and sets the location of the window object, or the current URL.

Window.locationbar read only

Returns a locationbar object whose visibility can be toggled in the window

Window.localStorage read only

Returns a reference to a local storage object used to store data that can only be accessed under the source that created it

Window.menubar read only

Returns the menu bar object whose visibility can be toggled in the window

Window.messageManager

Returns the window's message manager object.

Window.mozAnimationStartTime read only

Returns the number of milliseconds elapsed since the start of the current animation loop

Window.name

Get/set the name of the window

Window.navigator read only

Returns a reference to the navigator object

Window.opener

Returns a reference to the window that opened the current window

Window.outerHeight read only

Returns the outer height of the browser window

Window.outerWidth read only

Returns the outer width of the browser window

Window.pageXOffset read only

alias for window.scrollX

Window.pageYOffset read only

alias for window.scrollY

Window.sessionStorage read only

Returns a reference to the session storage object used to store data that can only be accessed under the source that created it

Window.parent read only

Returns a reference to the parent window of the current window or child window

Window.performance read only

Returns a Performance object, which includes the timing and navigation attributes, each of which is an object providing performance-related data. See also Using Navigation Timing for additional information and examples.

Window.personalbar read only

Returns the personalbar object whose visibility can be toggled in the window

Window.screen read only

Returns a reference to the screen object associated with the window.

Window.screenX read only

Returns the horizontal distance of the left border of the user's browser from the left side of the screen.

Window.screenY read only

Returns the vertical distance of the top border of the user's browser from the top side of the screen.

Window.scrollbars read only

Returns the scrollbars object, whose visibility can be toggled in the window.

Window.scrollX read only

Returns the number of pixels that the document has already been scrolled horizontally.

Window.scrollY read only

Returns the number of pixels that the document has already been scrolled vertically.

Window.self read only

Returns an object reference to the window object itself.

Window.sessionStorage

Returns a storage object for storing data within a single page session.

Window.top read only

Returns a reference to the topmost window in the window hierarchy. This property is read only.

Window.window read only

Returns a reference to the current window.

window[0], window[1], etc.

Returns a reference to the window object in the frames. See Window.frames for more details.

EventTarget.addEventListener()

Register an event handler to a specific event type on the window.

Window.alert()

Displays an alert dialog.

WindowBase64.atob ()

Decodes a string of data which has been encoded using base-64 encoding.

WindowBase64.btoa()

Creates a base-64 encoded ASCII string from a string of binary data.

Window.clearImmediate()

Cancels the repeated execution set using setImmediate.

WindowTimers.clearTimeout()

Cancels the repeated execution set using WindowTimers.setTimeout().

Window.close()

Closes the current window.

Window.confirm()

Displays a dialog with a message that the user needs to respond to.

Window.dump()

Writes a message to the console.

Window.find()

Searches for a given string in a window.

Window.focus()

Sets focus on the current window.

Window.getComputedStyle()

Gets computed style for the specified element. Computed style indicates the computed values of all CSS properties of the element.

Window.getSelection()

Returns the selection object representing the selected item(s).

Window.matchMedia()

Returns a MediaQueryList object representing the specified media query string.

Window.minimize() (top-level XUL windows only)

Minimizes the window.

Window.moveBy()

Moves the current window by a specified amount.

Window.moveTo()

Moves the window to the specified coordinates.

Window.open()

Opens a new window.

Window.openDialog()

Opens a new dialog window.

Window.postMessage()

Provides a secure means for one window to send a string of data to another window, which need not be within the same domain as the first.

Window.print()

Opens the Print Dialog to print the current document.

Window.prompt()

Returns the text entered by the user in a prompt dialog.

Window.resizeBy()

Resizes the current window by a certain amount.

Window.resizeTo()

Dynamically resizes window.

Window.scroll()

Scrolls the window to a particular place in the document.

Window.scrollBy()

Scrolls the document in the window by the given amount.

Window.scrollByLines()

Scrolls the document by the given number of lines.

Window.scrollByPages()

Scrolls the current document by the specified number of pages.

Window.scrollTo()

Scrolls to a particular set of coordinates in the document.

Window.setCursor()

Changes the cursor for the current window

Window.setImmediate()

Executes a function after the browser has finished other heavy tasks

Window.showModalDialog()

Displays a modal dialog.

Window.stop()

This method stops window loading.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324930703&siteId=291194637