The History Object in JavaScript the History object in JavaScript contains the information of the user's browsed URL. It refers to the browsing History of the browser. In view of the security requirements, this object receives many restrictions, and now only the following attributes and methods are left. The History object has the length attribute, listing the number of historical items. The history that JavaScript can handle is limited to the range that the browser's "Forward" and "backward" keys can go. This attribute returns the sum of the number of addresses included under the "Forward" and "back" buttons.
History object and the following methods
Back () is equivalent to pressing the "back" key.
Forward () is equivalent to pressing the forward key.
Go () usage: history. go (x); go to a specified address in the historical range. If x <0, x addresses are removed. If x> 0, x addresses are forwarded. If x = 0, the current web page is refreshed. History. go (0) is equivalent to location. reload.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.