Back Link

Contents

A back link is a link that moves the browser backwards one page, as if the user had clicked the Back button available in most browsers. Back links use JavaScript. For example, the following link moves the browser back one page if your browser supports JavaScript and if it supports the window.history object, which is necessary for back links:

Generally speaking a back link isn't necessary… the Back button usually suffices quite nicely, and usually you can also simply link to the previous page in your site. However, sometimes you might want to provide a link back to one of several "previous" pages, and that's where a back link comes in handy.

The following pages shows you how to implement a simple, flexible back link script without many of the problems inherent in this type of scripting. We'll begin with the basic technique, then move on to ways to customize your backlink.





About the Author
Copyright 1997-2002 Idocs Inc. Content in this guide is offered freely to the public under the terms of the Open Content License and the Open Publication License. Contents may be redistributed or republished freely under these terms so long as credit to the original creator and contributors is maintained.