article

objects - browser - window

[WHAT]

  1. The window object represents a window containing a DOM document; the document property points to the DOM document loaded in that window. A window for a given document can be obtained using the document.defaultView property.

[WHY]

  1. Window ,   
    1. ] properties - closed, defaultStatus, document, frames, history, innerheight, innerWidth, length, location, name, navigator, opener, outerHeight, outerWidth, pageXoffset, pageYoffset, parent, screen, 
    2. ] events - 
    3. ] methods -
alert() Displays an alert box with a message and an OK button
atob() Decodes a base-64 encoded string
blur() Removes focus from the current window
btoa() Encodes a string in base-64
clearInterval() Clears a timer set with setInterval()
clearTimeout() Clears a timer set with setTimeout()
close() Closes the current window
confirm() Displays a dialog box with a message and an OK and a Cancel button
createPopup() Creates a pop-up window
focus() Sets focus to the current window
moveBy() Moves a window relative to its current position
moveTo() Moves a window to the specified position
open() Opens a new browser window
print() Prints the content of the current window
prompt() Displays a dialog box that prompts the visitor for input
resizeBy() Resizes the window by the specified pixels
resizeTo() Resizes the window to the specified width and height
scroll() Deprecated. This method has been replaced by the scrollTo() method.
scrollBy() Scrolls the document by the specified number of pixels
scrollTo() Scrolls the document to the specified coordinates
setInterval() Calls a function or evaluates an expression at specified intervals (in milliseconds)
setTimeout() Calls a function or evaluates an expression after a specified number of milliseconds
stop() Stops the window from loading

 

[WHERE]

  1. ]

[WHEN]

  1. ]

[EXAMPLE]

  1. ]

[HOW-TO]

  1. ]

[REFERENCE]

  1. ] https://developer.mozilla.org/en-US/docs/Web/API/Window
Details Photos Edit more

Details

ID: 4606

NAME: objects-browser-window

DESCRIPTION: properties and methods of the window object, including

AUTHOR: article.author/s

EDITOR: article.editor/s

PUBLISHER: article.publisher/s

STATUS: Write

PRIORITY: -5

OWNER ID: 75

Content Photos Edit more

photos

page_photo

actions

Email Email-Owner SMS and