History.go() : History : History JAVASCRIPT TUTORIALS


JAVASCRIPT TUTORIALS » History » History »

 

History.go()









Syntax








history.go(num)



The go() method of the History object loads a URL from the history list.












<html>
    <head>
    <title> Using the go method of the History object</title>
    </head>
    <body>
    <form name=form1>
    Click on the button to go back pages.
    <input type="button" value="Go" onClick='window.history.go(-2)'>
    </form>
    </body>
    </html>







HTML code for linking to this page:

Follow Navioo On Twitter

JAVASCRIPT TUTORIALS

 Navioo History
» History