DHTML – Objects and Collections
Posted by: kaizenlog in Dynamic HTML, tags: DHTML – Objects and CollectionsDHTML - Objects and Collections
Objects
Window
This object represents the browser window and provides access to the document object contained in the window.
If the window contains frames, a separate window object is created automatically for each frame, to provide access to the document rendered in that frame.
Frames are considered to be subwindows in the browser.
Document
This object represents the XHTML document rendered in a window.
The document object provides access to every element in the XHTML document and allows dynamic modifications of the XHTML document.
Body
This object provides access to the body element of an XHTML document.
History
This object keeps track of the sites visited by the browser user.
The object provides a script programmer with the ability to move forward and backward through the visited sites, but for security reasons does not allow the actual site URLs to be manipulated.
Navigator
This object contains information about the Web browser, such as the name of the browser, the operating system on which the browser is running and other information that can help a script writer customize the user’s browsing experience.
Location
This object contains the URL of the rendered document. When this object is set to a new URL, the browser immediately switches to the new location.
Event
This object can be used in an event handler to obtain information about the event that occurred.
Screen
The object contains information about the computer screen for the computer on which the browser is running. Information such as the width and height of the screen in pixels can be used to determine the size at which elements should be rendered in a Web page.
Collections
All
Many objects have an all collection that provides access to every element contained in the object.
Anchors
This collection contains all anchor elements that have name/id attribute. The elements appear in the collection in the order they were defined in the XHTML document.
Applets
This collection contains all the applet elements in the XHTML document.
Embeds
This collection contains all the embed elements in the XHTML document.
Forms
This collection contains all the form elements in the XHTML document. The elements appear in the collection in the order they were defined in the XHTML document.
Frames
This collection contains window objects that represent each frame in the browser window. Each frame is treated as its own subwindow.
Images
Contains all the img elements in the XHTML document. The elements appear in the collection in the order they were defined in the XHTML document.
Links
Contains all anchor elements with an href property. This collection also contains all the area elements that represent links in an image map.
Plugins
This collection contains all the embed elements in the XHTML document.
Scripts
Contains all the script elements in the XHTML document.
Stylesheets
Contains styleSheet objects that represent each style element in the XHTML document and each style sheet included in the XHTML document via link.
![]() |
ABERCROMBIE AND FITCH A&F MENS CAP BNWT ONE SIZE £12.95 End Date: Tuesday Dec-02-2008 20:06:00 GMT Buy it now | Add to watch list |
Popularity: 13% [?]
Welcome to Kaizenlog.com If you're new here, you may want to subscribe to my RSS feed , Twitter You can contact us by using the contact form or submitting a comment. You can also share this post with your friends by clicking on the 'ShareThis' button above. Thanks for visiting!
Print This Post










Entries (RSS)