'history' Example : history « Javascript Objects « JavaScript Reference

'history' Example

    
<html>
<head>
<script language="JavaScript">
function function1(){
    history.back(1);
}
</script></head>
<body>
<input id="myButton" 
       type="button" 
       onclick="function1();" 
       value="Go back 1 step in the history list">
</body>
</html>

    
      
      








Related examples in the same category

1.'history' Syntax and Note
2.'history' JavaScript Properties
3.'history' JavaScript Methods
4.'history' is applied to