EchoEcho.Com Homepage
Web Hosting - As Reliable As It Gets!
   Home > References > JavaScript > window Object


 Tutorials 
 D-Zine Articles 
 Online Tools 
 Free Resources 
 References 
 Quiz 
 Hosting 

















  JavaScript Objects :
WINDOW








The window object is the top level object in the Javascript client hierarchy. A window object can represent either a top level window or a frame inside a frameset.




EVENT HANDLERS

OBJECTEXPLANATIONDEF
onDragDropThe user drops an object,such as a file, onto the browser window.NS2+
onLoadThe browser finishes loading a window or all of the frames within a FRAMESET tag.NS2+
onMoveThe user or script moves a window or frameNS2+
onResizeThe user or script resizes a window or frameNS2+
onUnloadThe user exits a document.NS2+
onBlurA form element loses focus or when a window or frame loses focus.NS3+
onErrorThe loading of a document or image causes an errorNS3+
onFocusA window, frame, or frameset receives focus or when a form element receives input focusNS3+

Note:
DEF indicates which version of Netscape browser that introduced the object. You can click the DEF link to get the complete object documentation provided by DevEdge.





PROPERTIES

OBJECTEXPLANATIONDEF
defaultStatusReflects the default message displayed in the window's status bar.NS2+
documentContains information on the current document, and provides methods for displaying HTML output to the user.NS2+
framesAn array reflecting all the frames in a window.NS2+
lengthThe number of frames in the window.NS2+
locationContains information on the current URL.NS2+
nameA unique name used to refer to this window.NS2+
parentA synonym for a window or frame whose frameset contains the current frame.NS2+
selfA synonym for the current window.NS2+
statusSpecifies a priority or transient message in the window's status bar.NS2+
topA synonym for the top most browser window.NS2+
windowA synonym for the current window.NS2+
alertDisplays an Alert dialog box with a message and an OK button.NS2+
clearTimeoutCancels a timeout that was set with the setTimeout method.NS2+
closeCloses the specified window.NS2+
confirmDisplays a Confirm dialog box with the specified message and OK and Cancel buttons.NS2+
openOpens a new web browser window.NS2+
printPrints the contents of the window or frame.NS2+
promptDisplays a Prompt dialog box with a message and an input field.NS2+
setTimeoutEvaluates an expression or calls a function once after a specified number of milliseconds has elapsed.NS2+
closedSpecifies whether a window has been closed.NS3+
historyContains information on the URLs that the client has visited within a window.NS3+
openerSpecifies the window name of the calling document when a window is opened using the open methodNS3+
blurRemoves focus from the specified object.NS3+
focusGives focus to the specified object.NS3+
scrollScrolls a window to a specified coordinate.NS3+
innerHeightSpecifies the vertical dimension, in pixels, of the window's content area.NS4+
innerWidthSpecifies the horizontal dimension, in pixels, of the window's content area.NS4+
outerHeightSpecifies the vertical dimension, in pixels, of the window's outside boundary.NS4+
outerWidthSpecifies the horizontal dimension, in pixels, of the window's outside boundary.NS4+
pageXOffsetProvides the current x-position, in pixels, of a window's viewed page.NS4+
pageYOffsetProvides the current y-position, in pixels, of a window's viewed page.NS4+
personalbarRepresents the browser window's personal bar (also called the directories bar).NS4+
scrollbarsRepresents the browser window's scroll bars.NS4+
statusbarRepresents the browser window's status bar.NS4+
toolbarRepresents the browser window's tool bar.NS4+
backUndoes the last history step in any frame within the top level window.NS4+
captureEventsSets the window or document to capture all events of the specified type.NS4+
clearIntervalCancels a timeout that was set with the setInterval method.NS4+
disableExternalCaptureDisables external event capturing set by the enableExternalCapture method.NS4+
enableExternalCaptureAllows a window with frames to capture events in pages loaded from different locations (servers).NS4+
findFinds the specified text string in the contents of the specified window.NS4+
forwardLoads the next URL in the history list.NS4+
handleEventInvokes the handler for the specified event.NS4+
homePoints the browser to the URL specified in preferences as the user's home page.NS4+
locationbarRepresents the browser window's location bar.NS4+
menubarRepresents the browser window's menu bar.NS4+
moveByMoves the window by the specified amounts.NS4+
moveToMoves the top left corner of the window to the specified screen coordinates.NS4+
releaseEventsSets the window to release captured events of the specified type, sending the event to objects further along the event hierarchy.NS4+
resizeByResizes an entire window by moving the window's bottom right corner by the specified amount.NS4+
resizeToResizes an entire window to the specified outer height and width.NS4+
routeEventPasses a captured event along the normal event hierarchy.NS4+
scrollByScrolls the viewing area of a window by the specified amount.NS4+
scrollToScrolls the viewing area of the window to the specified coordinates, such that the specified point becomes the top left corner.NS4+
setIntervalEvaluates an expression or calls a function every time a specified number of milliseconds elapses.NS4+
stopStops the current download.NS4+

Note:
DEF indicates which version of Netscape browser introduced the object. You can click the DEF link to get the complete object documentation provided by DevEdge.

















DEVELOPER TIP!
FACT:
Internet Explorer let you customize the look of cursors on your pages.
TIP:
Our CSS Cursor Tutorial will teach you how extremely easy it is!





     "Better Than Books - As Easy As It Gets!"


On EchoEcho: D-Zine Articles | Tutorials | Online Tools | Free Resources | References | Quiz | HostingAbout EchoEcho