JavaScript Tutorial





Español Français 中文 Deutsch Portuguese Japanese nederlands
   
 
Java-Script Tutorial
Introduction Introduction
Variables Variables
Operators Operators
Statements Statements
Loops Loops
Functions Functions
Objects Objects
Arrays Arrays
Cookies JS Cookies
Browser Objects Browser Objects
Form DOM Form DOM
Style Objects DOM Style Objects
Forums Ask Your Doubts
Scraps More about Javascript
Feedback Feedback
 




Window Object Methods


Tutorials Javascript

Topic

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...  





A Note
Javascript (JS) is one of the most used languages in the world. Some times spelled as Java Script. Hope you enjoy this tutorial. Do send your feedback or suggestions on this javascript or java script tutorial. This is a copyright content.

Other Links

web hosting