The history object of Js-bom programming

Source: Internet
Author: User

The History object contains the URLs that the user has visited (in a browser window).

The history object is part of the Window object and can be accessed through the Window.history property.

Note: There is no public standard applied to the history object, but this object is supported by all browsers.

The History object represents the forward and back buttons on the browser window

The History object was originally designed to represent the window's browsing histories. But for privacy reasons, the History object no longer allows scripts to access the actual URLs that have been accessed. The only features that remain used are the back (), forward (), and Go () methods.

Back () Loads the previous URL in the History list.
Forward () Loads the next URL in the history list.
Go ()

Loads a specific page in the History list.

1<!doctype html>234<meta charset= "UTF-8" >5<meta name= "Generator" content= "EditPlus?" >6<meta name= "Author" content= "" >7<meta name= "Keywords" content= "" >8<meta name= "Description" content= "" >9The history object of <title>bom programming </title>Ten One<body> A<!--History object represents the forward and back buttons on the browser window-- -<a href= "The link object of the history object for 34.BOM programming. HTML >34</a> -<input type= "button" value= "Forward" onclick= "Window.history.go (1)"/> the</body> -
1<!doctype html>234<meta charset= "UTF-8" >5<meta name= "Generator" content= "EditPlus?" >6<meta name= "Author" content= "" >7<meta name= "Keywords" content= "" >8<meta name= "Description" content= "" >9<title>bom linking objects of the history object of programming </title>Ten One<body> A<input type= "button" value= "Back" onclick= "Window.history.back ()"/> -<input type= "button" value= "Forward" onclick= "Window.history.go ( -1)"/> -<input type= "button" value= "Forward" onclick= "Window.history.go (1)"/> the    -</body> -

The history object of Js-bom programming

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.