Click to See Complete Forum and Search --> : Checking browser history
neicedover1982
Feb 9th, 2006, 02:56 PM
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.
john tindell
Feb 9th, 2006, 06:08 PM
Can be done with javascript
//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 (http://www.vbforums.com/forumdisplay.php?f=11) forum might have more of an idea
neicedover1982
Feb 10th, 2006, 07:13 AM
thats why I posted here, I figured PHP would be able to do more with this than could be done with javascript or something.
john tindell
Feb 10th, 2006, 09:20 AM
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.
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.