1.DHTML Object Model Review
Window
History
Navigator
Document
Screen
Location
Event
2.screen objects
The Screen object contains information about the client display screens
Often used to get the screen resolution and color
Common Properties
Width/height
Availwidth/availheight
3.history objects
The History object contains the URLs that the user has visited (in a browser window)
Length property: Number of URLs in the browser history list
Method
Back ()
Forward ()
Go (num)
4.location objects
The Location object contains information about the current URL
Often used to get and change the current browsing URL
HREF attribute: The address of the Web page being browsed by the current window
Method
Replace (URL): Turn to URL page address
Reload (): Reload the current URL with the press of the refresh button
5.navigator objects
The Navigator object contains information about the browser
Commonly used to obtain client browser and operating system information
Traverse all properties of the Navigator object
var showtext = "Navigator object property list: \ n";
for (var propname in navigator) {
Showtext + = propname + ":" + navigator[propname] + "\ n";
}
alert (Showtext);
DHTML other objects