0% found this document useful (0 votes)
20 views

The Internet Explorer Object Model

The document describes the hierarchy and objects in the Internet Explorer Object Model. The top level object is the Window, which acts as a container for all other objects like Frame, History, Location, Navigator, Document, Link, Anchor, and Form. The Window object has properties like name, parent, self, top, and location. It also has methods like alert, prompt, confirm, open, close, setTimeout, clearTimeout, and navigate. Frames are used to manage windows and frames, and have the same properties as the Window object. The Navigator object contains properties with information about the browser like appCodeName, appName, appVersion, and userAgent.

Uploaded by

Nishanthora
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
20 views

The Internet Explorer Object Model

The document describes the hierarchy and objects in the Internet Explorer Object Model. The top level object is the Window, which acts as a container for all other objects like Frame, History, Location, Navigator, Document, Link, Anchor, and Form. The Window object has properties like name, parent, self, top, and location. It also has methods like alert, prompt, confirm, open, close, setTimeout, clearTimeout, and navigate. Frames are used to manage windows and frames, and have the same properties as the Window object. The Navigator object contains properties with information about the browser like appCodeName, appName, appVersion, and userAgent.

Uploaded by

Nishanthora
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
You are on page 1/ 7

The Internet Explorer Object Model

Window

Frame

History

Location Navigator Document

Link

Anchor

Form

Element

Figure: The Hierarchy Model (DOM)

Window
Is the top most level of the hierarchy Is parent to all subsequent objects Acts as a container for all other objects Forms the core of Internet Explorer Syntax:
Parentobject.childobject.property=somevalue

Example window.document.bgcolor=red

Window object property


Name name of the window Parent returns the name of the parent window Self represents the current window Top returns the topmost window Opener defaultStatus, Status Eg. Window.status=now Location, frames, document, navigator

Methods
Are predefined actions Window object methods are: Alert, prompt, confirm, open, close, SetTimeOut, ClearTimeOut, navigate Syntax for open method: [New_win_name]=[window.]open url, target, [toolbar=bool] [,menubar=bool] [,scrollbar=bool][,resizable=bool][,width=pixel s][,height=pixels][,top=pixels][,left=pixels]

Examples: window.open www.facebook.com,FaceWin, toolbar=no,menubar=no,resizable=no, width=500,height=400,top=100,left=100 win1=window.open www.hotmail.com,win1 win1.close Events:


Onload, OnUnload

Frames
is used to manage frames and windows. Properties:
All as in window

Events:
none

The Navigator Object


Properties :
appCodeName appName appVersion userAgent systemlanguage platform

Events
None.

Methods
None.

You might also like