O objeto da janela � o objeto do n�vel superior na hierarquia do Javascript.
O objeto da janela representa uma janela de browser.
Um objeto da janela � criado automaticamente com cada exemplo de um Tag do <frameset> ou do <body>.
IE: Internet Explorer, O: �pera, F: Firefox.
Cole��es do objeto da janela
Collection
Description
IE
F
O
frames[]
Returns all named frames in the window
4
1
9
Propriedades do objeto da janela
Property
Description
IE
F
O
closed
Returns whether or not a window has been closed
4
1
9
defaultStatus
Sets or returns the default text in the statusbar of
the window
4
No
9
document
Document object
4
1
9
history
History object
4
1
9
length
Sets or returns the number of frames in the window
4
1
9
location
Location object
4
1
9
name
Sets or returns the name of the window
4
1
9
opener
Sets or returns a reference to the window that created
the window
4
1
9
outerheight
Sets or returns the height of the outside boundary,
including all interface elements, of a window
outerwidth
Sets or returns the width of the outside boundary,
including all interface elements, of a window
pageXOffset
Sets or returns the X position of the current page in
relation to the upper left corner of a window's display area
pageYOffset
Sets or returns the Y position of the current page in
relation to the upper left corner of a window's display area
parent
Returns the parent window
4
1
9
personalbar
Sets the browser's personal bar (or directories bar)
scrollbars
Sets or returns whether or not the scrollbars should be
visible
self
Returns a reference to the current window
4
1
9
status
Sets the text in the statusbar of the window
4
No
9
statusbar
Sets the browser's status bar
toolbar
Sets whether or not the browser's tool bar is visible
or not (can only be set before the window is opened and you must have
UniversalBrowserWrite privilege)
top
Returns the topmost ancestor window
4
1
9
M�todos do objeto da janela
Method
Description
IE
F
O
alert()
Displays an alert box with a message and an OK button
4
1
9
blur()
Removes focus from the current window
4
1
9
clearInterval()
Cancels a timeout that is set with the setInterval()
method
4
1
9
clearTimeout()
Cancels a timeout that is set with the setTimeout()
method
4
1
9
close()
Closes the current window
4
1
9
confirm()
Displays a dialog box with a message and an OK and a
Cancel button
4
1
9
createPopup()
Creates a pop-up window
4
No
No
focus()
Sets focus on the current window
4
1
9
forward()
Goes to the next URL in the history list (same as
clicking the browser's Forward button)
home()
Goes to the URL set by the user as their home page
(same as clicking the browser's Home button)
moveBy()
Moves the window a specified number of pixels in
relation to its current co-ordinates
4
1
9
moveTo()
Moves the window's left and top edge to the specified
co-ordinates
4
1
9
open()
Opens a new browser window
4
1
9
print()
Prints the contents of the current window
5
1
9
prompt()
Displays a dialog box that prompts the user for input
4
1
9
resizeBy()
Resizes the window by the specified pixels
4
resizeTo()
Resizes the window to the specified width and height
4
1.5
9
scrollBy()
Scrolls the content by the specified number of pixels
4
1
9
scrollTo()
Scrolls the content to the specified coordinates
4
1
9
setInterval()
Evaluates an expression at specified intervals
4
1
9
setTimeout()
Evaluates an expression after a specified number of
milliseconds
4
1
9
stop()
Cancels the current download (same as clicking the
browser's Stop button)
Keywords: usu�rio do objeto do dow, janela de browser, caixa de di�logo do objeto da janela, barra de status do objeto da janela