|
-
Feb 9th, 2006, 03:56 PM
#1
Thread Starter
Fanatic Member
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.
-
Feb 9th, 2006, 07:08 PM
#2
<?="Moderator"?>
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
-
Feb 10th, 2006, 08:13 AM
#3
Thread Starter
Fanatic Member
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.
-
Feb 10th, 2006, 10:20 AM
#4
<?="Moderator"?>
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|