How can I adapt the simple feature of the back/forward button on Javascript to be like IE's back forward buttons that drop down a list of visited URLs?
Is it possible?
Is Javascript the wrong language for the job?
Thanks
Wengang
Printable View
How can I adapt the simple feature of the back/forward button on Javascript to be like IE's back forward buttons that drop down a list of visited URLs?
Is it possible?
Is Javascript the wrong language for the job?
Thanks
Wengang
You mean like:
:confused:Code:history.back();
isn't that code just to link back X number of pages?
I want to set up the LIST that you can dropdown from the back and forward buttons in IE and select which previous page you'd like to return to .
I don't think history.back can do that, because it needs a list of visited pages (maybe in ASP?) to be constantly updated as you browse and when you click the button, a dynamic form/layer pops up populated with the items from that list
See what I mean?
Wengang
I doubt you can get that information from the browser, but I could be wrong.
well the pages are all mine anyway.
So I could probably write a file on the hard drive that, upon page load of each webpage, writes the URL and TITLE of the page being visited, and knocks off the Xth page (as being too far back to recall). That info would be used to populate a list of hyperlinked page titles.
So getting the info is not the hard part,
The part I can't get started on is how to get the forward and back "cookies" started.
the browser only allows a script to go back on page and no more..
else some-one else can trace your way of getting on a page..(and further back)
but have you never used IE? Don't you see that when you click the dropbox on the back arrow, about ten previous pages come up in a list?
Anyway, what about what I said about a text file, cookie-like, that appends the page's URL and TITLE when on pageload?
Doesn't that take it a step closer to being realized?
That doesn't mean that they make that information available through the webpage...Quote:
Originally posted by wengang
but have you never used IE? Don't you see that when you click the dropbox on the back arrow, about ten previous pages come up in a list?
As a locally executed program IE has access to local files including the history folder that it uses for the back and forward buttons. Webpages do not have access to any local files like this so basically you can't use them.
fine,
it was just an idea anyway.
thanks both