JavaScript Object:  Window

Properties & Methods Functionality Test Data Test Case
closed Specifies whether window has been closed or not. True or false. true means window is closed. False means window is not closed.  win001.html
defaultStatus Reflects the default message displayed in windows status bar. Regular Characters.  win002.html

win025.html

document Contains information on the current document and provides methods for displaying HTML output to the user. HTML output.  win003.html
frames An array reflecting all the frames in a window. Array.  win046.html 
history  Contains information on the URLs that the client has visited within a window. Array. win047.html 
innerHeight Specifies the vertical dimension, in pixel, of the window's content area. Integer.  win004.html [Please be carefull before executing this test. It actually shrinks the height of your window.]
innerWidth Specifies the horizontal dimension, in pixel, of the window's content area. Integer. win005.html
[Please be carefull before executing this test. It actually shrinks the width of your window.]
length  The number of frames in the window Integer.  win006.html
location Contains inforamtion on current URL Regular Characters.  win007.html
locationbar  Represents the browser window's location bar. Object Bar. win008.html
menubar  Represents the browser window's menu bar. Object Bar. win009.html
name  A unique name used to refer to this window. Regular Characters.  win010.html
opener  Specifies the window name of the calling document when a window is opened using the open method. Regular Characters. or Null.  win011.html
outerHeight Specifies the vertical dimension, in pixel, of the window's outside boundry. Integer.  win012.html
[Please be carefull before executing this test. It actually shrinks the height of your window.]
outerWidth  Specifies the horizontal dimension, in pixel, of the window's outside boundry. Integer  win013.html
[Please be carefull before executing this test. It actually shrinks the width of your window.]
pageXOffset  Provides the current x-position, in pixel, of a window's viewed page. Integer.  win014.html
pageYOffset  Provides the current y-position, in pixel, of a window's viewed page. Integer. win015.html
parent  A synonym for a window or frame whose frameset contains the current frame. Object Window.  win016.html
personalbar  Represents the browser window's personal bar (Also called the directories bar). Object Bar. win017.html
screenX      win040.html 
screenY      win041.html 
scrollbars Represents the browser window's scroll bars. Object Bar. win018.html
self  A synonym for current window. Object Window. win019.html
status  Specifies a priority or transient message in window's status bar. Regular Characters.  win024.html
statusbar  Represents the browser window's status bar. Object Bar. win022.html
toolbar Represents the browser window's status bar. Object Bar. win023.html
top  A Synonym for topmost browser window. Object Window.  win021.html

win048.html

window  A synonym for current window. Object Window. win020.html
alert Method that displays an alert box with message and OK button True, or False. win035.html

win052.html

win085.html

back Method that undoes the last history step in any frame within the top level window.    win053.html 

win082.html

blur Method that removes the focus from specified object.    win050.html 

win054.html

captureEvents Method that sets the window or document to capture all events of the specified type.    win029.html

win055.html

clearInterval Method that cancels a timeout that was set with the setInterval method.    win038.html

win056.html

clearTimeout  Method that cancels a timeout that was set with setTimeout method.    win039.html

win057.html

close  Method that closes the specified window.    win058.html 

win087.html

confirm  Method that displays a conform dialog box with the specified message and OK and Cancel  button.   win059.html 

win086.html

disableExternalCapture  Method that disables external event capturing set by the enableExternalCapture method.    win060.html 
enableExternalCapture Method that allows a window with frames to capture events in pages loaded from different locations (servers).    win061.html 
find  Method that finds the specified text string in the contents of specified window.    win028.html

win063.html

focus  Method that gives focus to specified object.    win049.html 

win064.html

forward  Method that loads the next URL in the history list.   win065.html 

win083.html

handleEvent Method that invokes the handler for the specified event.   win066.html 
home  Method that points the browser to the URL specified in preferences as the users home page.    win067.html 

win084.html

moveBy  Method that moves the window by specified amounts.    win043.html 

win045.html

win068.html

moveTo  Method that moves the window to specified screen co-ordinates.    win042.html 

win044.html

win069.html

open  Method that opens new web browser window.    win051.html 

win070.html

print  Method that prints the contents of the window or frame.    win071.html 

win089.html

prompt  Method that  displays a prompt dialog box with a message and input field.    win072.html 

win088.html

releaseEvent  Method that sets window to release captured event of the specified type, sending the event to objects further along the event hierarchy.    win073.html 
resizeBy  Method that resizes an entire window by moving the window's bottom right corner by specified window.    win026.html

win031.html

win037.html

win074.html

resizeTo  Method that resizes an entire window to the specified outer height and outer width.    win030.html

win036.html

win075.html

routeEvent  Method that passes a captured event along the normal event hierarchy.    win077.html 
scroll  Method that scrolls window to a specified coordinate.    win076.html 
scrollBy  Method that scrolls the viewing area of a window by specified amount.    win033.html

win078.html

scrollTo  Method that scrolls the viewing area of the window to the specified coordinates, such that the specified point becomes the top-left corner.    win032.html
setInterval Method that evaluates an expression or calls a function once after a specified number of milliseconds elapses.    win034.html

win079.html

setTimeout  Method that evaluates an expression or calls function once after a specified number of milliseconds has elapsed.   win027.html

win080.html

stop  Method that stops the current download.    win081.html 

win090.html