w3pop.com :: ÍøÂçѧԺ :: HTML DOM :: DOM History
The History object is an object that can be accessed through the history property of the Window object.
ÀúÊ·¶ÔÏóÊÇÒ»¸ö¿ÉÒÔͨ¹ýWindowµÄÀúÊ·ÊôÐÔÀ´±»·ÃÎʵĶÔÏó
The History object consists of an array of URLs. These URLs are the URLs the user has visited within a browser window.
ÀúÊ·¶ÔÏó°üÀ¨URLs×飬URLsÊÇÓû§ÔÚÒ»ä¯ÀÀÆ÷´°¿ÚÄÚËù·ÃÎʹýµÄURLµØÖ·
IE: Internet Explorer, F: Firefox, N: Netscape, W3C: World Wide Web Consortium (Internet Standard).
| PropertyÊôÐÔ | DescriptionÃèÊö | IE | F | N | W3C |
|---|---|---|---|---|---|
| length | Returns the number of elements in the history list ·µ»Øhistory±íÖÐÔªËØµÄÊýÁ¿ |
3 | 1 | 2 |
| Method ·½·¨ |
Description ÃèÊö |
IE | F | N | W3C |
|---|---|---|---|---|---|
| back() | Loads the previous URL in the history list (same as clicking the Back button and to history.go(-1)) ´ÓÀúÊ·ÁбíÖÐ×°Èëǰһ¸ö URL¡£ |
3 | 1 | 2 | |
| forward() | Loads the next URL in the history list (same as clicking the Forward button and to history.go(1)) ´ÓÀúÊ·ÁбíÖÐ×°ÈëÏÂÒ»¸ö URL¡£ |
3 | 1 | 2 | |
| go(number|"URL") | Loads a specified URL from the history list ´ÓÀúÊ·ÁбíÖÐ×°Èë URL¡£ |
3 | 1 | 2 |
ÆÀÂÛ (0)
All