[ acky.net logo ]




Acky.net Tips

DarkStar Communications - Afforable Quality Hosting Solutions
DarkStar Communications - Afforable Quality Hosting Solutions

 

Back and forward
Sure you can ask your visitors to use their brower's BACK and FORWARD buttons to navigate your site. Wouldn't it be nice to have your own BACK and FORWARD buttons on your pages as in the following example:

All you have to do is place the following HTML tags on your page:

<FORM METHOD="post">



  <INPUT  TYPE="button" 

         VALUE="BACK" 

       OnClick="history.go( -1 );return true;">



  <INPUT  TYPE="button" 

         VALUE="FORWARD" 

       OnClick="history.go(  1 );return true;">



</FORM>

As you can see, we're simply using JavaScript's "history object" to go back and forward.