Results 1 to 10 of 10

Thread: JS forward/back history menu

  1. #1

    Thread Starter
    Frenzied Member wengang's Avatar
    Join Date
    Mar 2000
    Location
    Beijing, China
    Posts
    1,604

    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

  2. #2
    Stuck in the 80s The Hobo's Avatar
    Join Date
    Jul 2001
    Location
    Michigan
    Posts
    7,256
    You mean like:

    Code:
    history.back();
    My evil laugh has a squeak in it.

    kristopherwilson.com

  3. #3

    Thread Starter
    Frenzied Member wengang's Avatar
    Join Date
    Mar 2000
    Location
    Beijing, China
    Posts
    1,604
    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

  4. #4
    Stuck in the 80s The Hobo's Avatar
    Join Date
    Jul 2001
    Location
    Michigan
    Posts
    7,256
    I doubt you can get that information from the browser, but I could be wrong.
    My evil laugh has a squeak in it.

    kristopherwilson.com

  5. #5

    Thread Starter
    Frenzied Member wengang's Avatar
    Join Date
    Mar 2000
    Location
    Beijing, China
    Posts
    1,604
    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

  6. #6
    Lively Member
    Join Date
    Apr 2003
    Location
    Netherlands
    Posts
    96
    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)

  7. #7

    Thread Starter
    Frenzied Member wengang's Avatar
    Join Date
    Mar 2000
    Location
    Beijing, China
    Posts
    1,604
    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

  8. #8
    Stuck in the 80s The Hobo's Avatar
    Join Date
    Jul 2001
    Location
    Michigan
    Posts
    7,256
    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...
    My evil laugh has a squeak in it.

    kristopherwilson.com

  9. #9
    Frenzied Member dj4uk's Avatar
    Join Date
    Aug 2002
    Location
    Birmingham, UK Lobotomies: 3
    Posts
    1,131
    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.

  10. #10

    Thread Starter
    Frenzied Member wengang's Avatar
    Join Date
    Mar 2000
    Location
    Beijing, China
    Posts
    1,604
    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
  •  



Click Here to Expand Forum to Full Width