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