Window Object Methods

what are the functions/methods that are supported by window object?

Explanation

Window Object Functions:
The following table lists the methods associated with Window object.
MethodDescriptionTEST
alert() Method "alert('message string')" is used to popup an alert message.
confirm() Method "confirm('message string')" is used to display a confirm dialog box. learn more about confirm ...
prompt() Method "prompt('message string')" is used to get user input. learn more about prompting a message...
open() Method "open(url, name)" is used to open a new window using javascript. learn more about it...
close() Method "close()" is used to close a window using javascript. learn more...
scroll(x,y) Method "scroll(x, y)" is used to move a window to a new position of at axis x,y.
blur() Method "blur()" is used to remove focus from the window. To test this, open two or more windows and test.
focus() Method "focus()" is used to bring a window in focus.
setTimeout() Method "setTimeout()" is used to execute an expression or function after a time interval. learn more about it...
clearTimeout() Method "clearTimeout()" is used to clear a timeout set using the above method. learn more about it...


Ask Questions

Ask Question