home *** CD-ROM | disk | FTP | other *** search
/ PC User 2005 May / CD / PCU0505CD.iso / software / full / coffecup / files / html2005.exe / %MAINDIR% / Javascript / Back_FwdButtons.xml < prev    next >
Encoding:
Text File  |  2005-02-16  |  1007 b   |  39 lines

  1. <ccResource>
  2.   <ccTitle>
  3. Back_Fwd Buttons
  4.   </ccTitle>
  5.   <ccCategory>
  6. Browser
  7.   </ccCategory>
  8.   <ccDescription>
  9. Start of Back/Forward Buttons Script
  10.   </ccDescription>
  11.   <ccInstructions>
  12. Just put this script anywhere on your web page and you will give your visitor 2 Back and Forward Navigation buttons.  Designed for web sites that have multiple web pages.
  13.   </ccInstructions>
  14.   <ccHeadContent>
  15.   </ccHeadContent>
  16.   <ccBodyContent>
  17. <SCRIPT LANGUAGE="JavaScript">
  18. <!-- hide this script tag's contents from old browsers
  19. function goHist(a) 
  20. {
  21.    history.go(a);      // Go back one.
  22. }
  23. //<!-- done hiding from old browsers -->
  24. </script>
  25. <FORM METHOD="post">
  26. <INPUT TYPE="button" VALUE="  BACK " onClick="goHist(-1)">
  27. <INPUT TYPE="button" VALUE="FORWARD" onClick="goHist(1)">
  28. </form>
  29.   </ccBodyContent>
  30.   <ccElementContent>
  31.   
  32.    <ccElementName></ccElementName>
  33.    <ccElementAction></ccElementAction>
  34.    
  35.   </ccElementContent>
  36.   <ccExtraData>
  37.  
  38.   </ccExtraData>
  39. </ccResource>