Back Link: The BasicsThe first step in implementing the back link is to downloadbacklink.js and upload it to your server. Load
backlink.js
into your web page with a <SCRIPT SRC="...">
<SCRIPT TYPE="text/javascript" SRC="backlink.js"></SCRIPT>
which gives us this back link:
Let's take a look at this basic example.
Line 1 opens the script element and line 2 sets the obligatory comment for older browsers. Line 3 creates a backlink object, storing it in the No History, No LinkThe backlink object uses object detection to test if thehistory.back() method works. If the browser does not support history.back(), or if the browser is in the first page it has loaded since the browser opened (i.e. there is no page to go "back" to), then the back link is not written out. This is why it is better to use a scripting object to write out the link instead of hardcoding the link into the page.
Now let's look at customizing the back link. |