Previous Example-|-Next Example-|-Return to Chapter Listing

Example 2.5:
Navigation Buttons



Note that the buttons use your browser's history list, so if the appropriate entry is not in the list, the button won't do anything (for instance, if you haven't been forward from this point, the forward buttons won't work).



This is the script we used: <form> <input type="button" value=" <-- 2 Pages " onclick="history.go(-2)"> <input type="button" value="Previous Page" onclick="history.go(-1)"> <input type="button" value=" Next Page " onclick="history.go(1)"> <input type="button" value=" 2 Pages --> " onclick="history.go(2)"> </form>
Previous Example-|-Next Example-|-Return to Chapter Listing