Take Chrome as an example.
1. Open chromium alloy.
2. Press the shortcut key Ctrl+H to open the history.
In the browser, history refers to the temporary information of websites visited by the browser in the computer, and the retention time of history in the browser can be changed by setting the properties of the browser. By looking at the history, you can know which websites users have visited, list the history in chronological order, name order, address order and alphabetical order, and even arrange the history according to the number of visits.
2. How to view the browsing history 1? Enter the mobile phone Baidu and click on the bottom column. 2. Select Bookmarks/History. 3. Click History. 4. You can view the historical expansion data over a period of time:
The browser will record the web pages visited in the same window (tab). No matter which way we change the webpage, the browser will record the changed webpage, so that we can quickly switch the visited webpage through the browser's forward and backward buttons: 1) Enter the webpage address directly in the address bar; 2) Click the hyperlink in the webpage to jump to other webpages; But it cannot be a link that opens in a new window; 3) Change location.href through script to jump to other web pages; 4) Jump to other web pages through form submission; But it cannot be a form submitted to a new window.
In short, as long as the page jumps in the same window, the browser will record it. However, in addition to refreshing, the length property of the history object can view the total history stored in the current window. In the previous demo page, I printed this attribute on the page, and this attribute will only change when the page changes; Refreshing the page does not change this property.
Browsers have a data structure to store the history of web pages. I call it the history stack because its structure is somewhat similar to the use of the stack.