Results 1 to 4 of 4

Thread: Checking browser history

  1. #1

    Thread Starter
    Fanatic Member neicedover1982's Avatar
    Join Date
    Jun 2005
    Posts
    566

    Checking browser history

    Ok, I am redesigning my personal website. I was thinking of adding small things to make people rememeber it, like "that is/was cool". I was thinking I would put the same type of feature that web browsers have, so if they can go back (with the browsers back button) I will display a little left arrow on my site. If they can go forward with the browsers forward button, I will display a little right arrow and if they click them they will go back or forward in the browsers history. I thought this might be alittle cool thing to do, to add a little distinctiveness to my site. I just have no idea if its even possible. I figure I will use an include file instead of writing the code on everypage. can someone help me? Thanks a million.
    Kevin | New England Iced Over | http://www.kevincawleyjr.com

  2. #2
    <?="Moderator"?> john tindell's Avatar
    Join Date
    Jan 2002
    Location
    Brighton, UK
    Posts
    1,099

    Re: Checking browser history

    Can be done with javascript

    Code:
    //back
    history.back();
    
    //forward
    history.forward();
    
    //or to specify how many pages forward
    history.go(-1);
    history.go(1);
    Not to sure about how to detect if they can. Maybe someone in the XML, HTML, Javascript, Web and CGI forum might have more of an idea

  3. #3

    Thread Starter
    Fanatic Member neicedover1982's Avatar
    Join Date
    Jun 2005
    Posts
    566

    Re: Checking browser history

    thats why I posted here, I figured PHP would be able to do more with this than could be done with javascript or something.
    Kevin | New England Iced Over | http://www.kevincawleyjr.com

  4. #4
    <?="Moderator"?> john tindell's Avatar
    Join Date
    Jan 2002
    Location
    Brighton, UK
    Posts
    1,099

    Re: Checking browser history

    Well you could store every page that the user has viewed, and then allow the user to step back to any page they have visited on your site, possibly from previous visits. But im not sure how this would work with going forward.

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