Register | Login
Thursday, August 21, 2008

Sections
  
About Us
  
Hosting Provided by Server Intellect
Partners
Downloads
  
 WWWCoder.com Resource Directory

Adding a Javascript Navigation using the History
11/28/1999 12:00:00 AM

Tutorial on using the Javascript History method for navigation.

If your Web site contains a series of documents, you can use JavaScript to
create BACK and FORWARD buttons for easy navigation. To create such
navigational buttons, use JavaScript's History object, like this:

<html>
        <body>
            <form>
                <input type="button" value="<< Back" onClick="history.back();">
                 <br>
               <input type="button" value="Forward >>" onClick="history.forward();">
           </form>
     </body>
</html>


You could also use a text based link or image to accomplish the same thing:


<a href="#" onClick="history.back();">Go Back</a>
<br>
<a href="#" onClick="history.forward();">Go Forward</a>


Page Options:
format for printing  Format for Printer
email article  Email Page
add to your favorites   Add to Favorites
How would you rate the quality of this content?
Poor - - Excellent
Comments?
Overall Rating:
Comments Left:
Left on 3/9/2007 1:33:28 AM by Anonymous
Comments:
Left on 4/13/2006 2:11:08 PM by Anonymous
Comments: Option 2 works great with .net 2.0 master pages if you want to use a custom made image!!!
  

 Latest Articles
  

 Latest News
  

 

Spotlight
Syndication

 


 


Digg This
 


DotNetNuke Platinum Benefactor

  
 

 Terms Of Use | Privacy Statement
 Copyright 2008 - Santry Technology Solutions, Box 172, Girard, PA 16417, (814) 774-0970