Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Jul 2003
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Is current page the last in the history array?

    Need to know if the current page is the last in the history array. Theoretically "history[history.length-1] == window.location.href" should do it but
    history[...],
    history.current,
    history.previous,
    history.next,
    return "undefined". Working with IE 6.0.
    Is it a security problem? Scant references in the Internet.
    What else can be done?

    Thanks for helping.

  • #2
    Regular Coder
    Join Date
    Jun 2002
    Location
    Adirondacks
    Posts
    516
    Thanks
    4
    Thanked 4 Times in 4 Posts
    but it's not historic, it's present or current?
    why not just make the line of code window.whatever. or document.whatever?

  • #3
    Senior Coder
    Join Date
    Jun 2002
    Location
    near Oswestry
    Posts
    4,508
    Thanks
    0
    Thanked 0 Times in 0 Posts
    it's a security feature - you're not allowed to read the history in javacript; you can only set it, as in history.go()
    "Why bother with accessibility? ... Because deep down you know that the web is attractive to people who aren't exactly like you." - Joe Clark


  •  

    Posting Permissions

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