JavaScript go back/forward hyperlink

Is a dynamic computer programming language.[5] It is most commonly used as part of web browsers, whose implementations allow client-side scripts to interact with the user, control the browser, communicate asynchronously, and alter the document content that is displayed.[5] It is also used in server-side network programming with runtime environments such as Node.js, game development and the creation of desktop and mobile applications.
Post Reply
dzcadii
Posts: 94
Joined: Sun Mar 01, 2015 4:36 am

JavaScript go back/forward hyperlink

Post by dzcadii » Sun Mar 01, 2015 10:58 pm

history.go(-1);

Code: Select all

<a href=javascript:history.go(-1)><font color=red size=-2>(Go Back)</font></a>
history.go(+1);

Code: Select all

<a href=javascript:history.go(+1)><font color=red size=-2>(Go Forward)</font></a>

Post Reply