Using the history object, I can navigate "back" and "forwards". BUT what I'd like to do is just to find the URL of a page in the history and NOT navigate to it. Is it possible please?
Printable View
Using the history object, I can navigate "back" and "forwards". BUT what I'd like to do is just to find the URL of a page in the history and NOT navigate to it. Is it possible please?
I don't believe this is possible, and intentionally so. Back and forward functionality is very useful, of course, but think about it - would you want every site on the web to be able to rifle through your history find out exactly where you've been before arriving there? Imagine the marketing sharks getting hold of all that.
I think for this reason script is explicitly prevented from accessing history details beyond the blind "go".
Thanks. Very good point, but sadly not the answer I wanted :( . Cheers anyway.