Powered by InterCreatives | Site Map
Search:
NewSourceMedia Popular Tutorials: PHP Javascripts Web Hosting
SoftwareTutorials
CATEGORIES
Job Listings
 
Home / Javascripts / Navigation

Javascript Go Back to Previous Page Button Link

Published by: Alexander McLean III (AM3Design.com)


Want to add a back button navigation to your web page links. Here is how to do this using javascript and html links.

The code we'll use look a bit like this: "javascript:history.go(-1)" .

With that code we are telling the browser to go back -1 page. You can change the -1 number to any page history like -2 or -5. So if you choose go back -3, you will send the visitor three pages back in their browser history.

Here's the source code:

<a href="javascript:history.go(-1)">Go Back One Page </a>

Click here to try the code: Go back one page


Next Javascripts Page:
1  2  3  4  5  6  7  8  9  [10]  11  12 





Hosting by iPowerWeb.com - 50 Gb for $7.95