SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Member
    Join Date
    Dec 2001
    Posts
    9
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    **javascript: history**Help!

    Hi!
    I just finished adding a purchased shopping cart to a site and it's part php and part javascript.

    The first problem is this little piece of code:
    <A HREF=\"javascript:history.go(-1)\">Back<A>

    It works fine in IE6 but, wil only work once in Netscape6.2...What gives?
    Kim E.,
    http://www.bird-e-toys.com

  2. #2
    Currently Occupied; Till Sunda Andrew-J2000's Avatar
    Join Date
    Aug 2001
    Location
    London
    Posts
    2,475
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    this works in netscape

    PHP Code:
    <p>
      <
    input type="button" value="<-- Back"   onClick="history.back()">
    <
    br />
      <
    input type="button" value="<-- Forward"   onClick="history.forward()">
    </
    p
    but i dont see why this done work though

    <input type="button" value="Go" onClick="history.go(-1)">

    netscape


    Property Summary
    current
    Specifies the URL of the current history entry.

    length
    Reflects the number of entries in the history list.

    next
    Specifies the URL of the next history entry.

    previous
    Specifies the URL of the previous history entry.




    Method Summary
    back
    Loads the previous URL in the history list.

    forward
    Loads the next URL in the history list.

    go
    Loads a URL from the history list.

  3. #3
    SitePoint Member
    Join Date
    Dec 2001
    Posts
    9
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Thanks!! for**javascript: history**Help!

    Andrew,

    Thank you for the prompt reply. That worked perfectly.
    Kim E.,
    http://www.bird-e-toys.com

  4. #4
    Currently Occupied; Till Sunda Andrew-J2000's Avatar
    Join Date
    Aug 2001
    Location
    London
    Posts
    2,475
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    thats good coz im not normally a cross browser person lol


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
  •