How to access browsers history?

Discussion in 'JavaScript' started by Jen-, Feb 11, 2007.

  1. #1
    Hello, I need to know how you access a browsers history. I am trying to stop my iframes on my page from being added to the history. Or to add something to the history so it reads it instead of the iframes.

    I can figure out how to get help with different parts of the code that will help with this. I just need something to get me started. What javascript variables tap into the browsers history from a web page? Please let me know, thank you very much.
     
    Jen-, Feb 11, 2007 IP
  2. MattD

    MattD Peon

    Messages:
    161
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #2
    I dont think you can access the browser's history with javascript - it would be a huge security flaw if I could go and view or edit a user's browse history!
     
    MattD, Feb 11, 2007 IP
  3. bobby9101

    bobby9101 Peon

    Messages:
    3,292
    Likes Received:
    134
    Best Answers:
    0
    Trophy Points:
    0
    #3
    yeah, def not possible
     
    bobby9101, Feb 11, 2007 IP
  4. Jen-

    Jen- Peon

    Messages:
    151
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    How about adding something to the history with javascript? I might need anything other than that. How about accessing the back button somehow so I can tell everyone how to get to my last page? Since the iframe is keeping them from going to my last page the normal way. How is this done, I know its possible due to these annoying sites where they stop the back button on purpose. I'm not doing it on purpose, only to give them other instructions. Please let me know, thanks.
     
    Jen-, Feb 12, 2007 IP
  5. bobby9101

    bobby9101 Peon

    Messages:
    3,292
    Likes Received:
    134
    Best Answers:
    0
    Trophy Points:
    0
  6. Jen-

    Jen- Peon

    Messages:
    151
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Thanks for the links. That solves most of the problem, but I still need to disable the back button so they'll use my back button instead. Anyone know how? Thank you very much.
     
    Jen-, Feb 14, 2007 IP
  7. bobby9101

    bobby9101 Peon

    Messages:
    3,292
    Likes Received:
    134
    Best Answers:
    0
    Trophy Points:
    0
    #7
    I don't think that's possible
     
    bobby9101, Feb 14, 2007 IP