Category Subject Sinopsys Description Example
Function alert(msg) Displays an Alert dialog box with the desired message and OK button
Function confirm(msg) Displays a Confirm dialog box with the specified message and OK and Cancel buttons
Function prompt(msg, [input]) Displays a Prompt dialog box with a message. Optional 'input' argument allows you to specify the default input (response) that gets entered into the dialog box. Set 'input' to '' to create a blank input field
Function open(url, name) is used to open a new window using javascript
Function close() is used to close a window
Function scroll(x,y) is used to move a window to a new position of at axis x,y
Function blur()focus() is used to bring a window in focus
Function clearTimeout(timeoutID) The clearInterval method is available on window objects. It is used to clear a delay to a function that was set using setInterval(). This is not a reserved word so you can declare your own variable or function called clearInterval but if you do then you will not be able to use the method.
Function setTimeout The setTimeout method is available on window objects. It is used to add a delay to a function (usually one that is going to be executed multiple times. This is not a reserved word so you can declare your own variable or function called setTimeout but if you do then you will not be able to use the method timeoutID = window.setTimeout('myFunc()', 500);
Function setInterval The setInterval method is available on window objects. It is used to add a delay to a function (usually one that is going to be executed multiple times. This is not a reserved word so you can declare your own variable or function called setInterval but if you do then you will not be able to use the method intervalID = window.setInterval('myFunc()', 500);
Property closed Property 'Closed' is used to identify whether a window is closed. Returns true if the window is closed.
Property status Property 'status' is used to get the current status of the browser window. i.e It will say loading, if the page is loading. The message is as shown in the status bar.
Property defaultStatus Property 'defaultStatus' is used to declare the default status of the browser window.
Property document Returns the document object of the current browser page. All its properties and methods will be handled in the coming chapters.
Property frames Returns an array containing all the frame objects present in the browser window.
Property history Returns the history object of the current window. All its properties and methods will be seen in the coming chapters.
Property length Returns an integer defining the number of frames in the page being tested.
Property location Property 'location' - returns the full url path of the document viewed as string.
Property name Property 'name' - is used to find the name of the browser window. Return empty string if no name was given.
Property opener Property 'opener' - Used to identify the object from which the window under testing was created
Property parent Property 'parent' - Used to identify the parent window object
Property self Property 'self' - Returns the instance of the current window
Property top Property 'top' - Used to get the topmost browser window in a series of nested windows