SitePoint Sponsor

User Tag List

Results 1 to 3 of 3

Hybrid View

  1. #1
    SitePoint Member
    Join Date
    May 2001
    Location
    U.S.A
    Posts
    4
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Go Back history button on top frame that affects main frame?

    Hello, Im trying to make a back button that reloads the previous page the user was at.
    The back button will be on a small top frame and the page that needs to be controlled will be in the main frame.
    The top frame is just a navigation system, and all pages will be loaded in the main frame.
    Im trying to use this code

    Code:
    <FORM>
     <INPUT TYPE="button" 
            NAME="back" 
           VALUE="BACK" 
         onClick="history.go(-1)">
     </FORM>
    Does anyone know how I could accoplish the desired result using this code, or any other code?
    And what about a foreward button?
    Thanks for any help.
    HardRon

  2. #2
    SitePoint Enthusiast
    Join Date
    Jun 2001
    Location
    New Zealand
    Posts
    74
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    <help>StIcKs</help>

  3. #3
    SitePoint Member doggi's Avatar
    Join Date
    Oct 2001
    Posts
    21
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yep, the first link in previous post will answer your question. You have to keep in mind that each frame or window has his own history. So if you use history.go(-1) it only applies to the current frame. You'll need to point to your main frame and use the go method of that history object.

    Regards


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •