|
-
Jul 17th, 2003, 06:11 PM
#1
Thread Starter
Frenzied Member
JS forward/back history menu
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
Wen Gang, Programmer
VB6, QB, HTML, ASP, VBScript, Visual C++, Java
-
Jul 17th, 2003, 10:04 PM
#2
Stuck in the 80s
You mean like:
-
Jul 17th, 2003, 10:33 PM
#3
Thread Starter
Frenzied Member
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
Wen Gang, Programmer
VB6, QB, HTML, ASP, VBScript, Visual C++, Java
-
Jul 17th, 2003, 11:16 PM
#4
Stuck in the 80s
I doubt you can get that information from the browser, but I could be wrong.
-
Jul 18th, 2003, 02:41 AM
#5
Thread Starter
Frenzied Member
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.
Wen Gang, Programmer
VB6, QB, HTML, ASP, VBScript, Visual C++, Java
-
Jul 18th, 2003, 05:43 AM
#6
Lively Member
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)
-
Jul 18th, 2003, 08:48 AM
#7
Thread Starter
Frenzied Member
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?
Wen Gang, Programmer
VB6, QB, HTML, ASP, VBScript, Visual C++, Java
-
Jul 18th, 2003, 11:17 AM
#8
Stuck in the 80s
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?
That doesn't mean that they make that information available through the webpage...
-
Jul 18th, 2003, 11:23 AM
#9
Frenzied Member
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.
-
Jul 18th, 2003, 11:46 AM
#10
Thread Starter
Frenzied Member
fine,
it was just an idea anyway.
thanks both
Wen Gang, Programmer
VB6, QB, HTML, ASP, VBScript, Visual C++, Java
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|