Snap Builder Public Codes Library
Snap | Generators | Login | Browse | Search | Enter Code | Export Snap Builder Public Codes Library

 

Category: Javascript Codes Library >> Navigation / Menus >> Back Forward History Navigation Buttons


Code Snippet </> Info


Snippet Name: Back Forward History Navigation Buttons

Description: Add form navigation buttons that utilizes the previous pages viewed history.


Compatible Browsers:
Chrome BrowserFirefox BrowserInternet Explorer BrowserOpera BrowserSafari Browser


Example: View Code Demo

Note: You can change the form button text words to suit your needs.


Author: SnapBuilder <snippets@snapbuilder.com>

Last Modified: 2015-12-13 06:59:53

Language: javascript

Highlight Mode: javascript

Copy Codes: Use Free Notepad ++
Bookmark and Share

Snap HTML Code Editor:
Paste the source code, make changes and instantly see it in live preview.
Snap HTML Code Editor


  About Copying
Copied To Clipboard!

<html> <head> <title>Back / Forward History Button Navigation</title> </head> <body> <!-- Begin Back/Forward Buttons Script by http://snapbuilder.com--> <script> <!-- hide this script contents from old browsers function goHist(a) { history.go(a); // Go back one. } // <!-- done hiding from old browsers --> </script> <form method="post"> <input type="button" value="<< BACK" onClick="goHist(-1)"> <input type="button" value="FORWARD >>" onClick="goHist(1)"> </form> <!-- End of Back/Forward Buttons Script --> <br /> [ YOUR CONTENT GOES HERE ] </body> </html>


[ Snippet Options ]

 

© 2002 -  Snap Builder Public Codes Library