Monday, February 8, 2010

How do you assign object properties in JavaScript?

JavaScript window Object Properties

window.closed - indicates whether a window has been closed or not.

window.defaultstatus / window.status - specifies the default message / message displayed in the browser status bar.

window.frames[] - This array holds the array of frame objects of the window

window.name - Contains the name of the window object. (Windows opened by a script need to have a name)

window.opener - contains a reference of the parent window which opened it.

window.parent - contains a reference to the window object that contains the frame

window.screen - contains information about the screen on which the window is displayed like height, width, availHeight, availWidth and colorDepth.

window.self - A reference to the current window.

window.top - A reference to the top-level window when working with frames.

No comments:

Post a Comment