This is a discussion on "backwards script" within the JavaScript Forum section. This forum, and the thread "backwards script are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
backwards script
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
backwards script
Hi,
Does some one know how to make a script that go backwards in the history but that stay in the site? (example: some one search for your site in google, you click to “back” and it goes back to the main index of your site) Backwards javascript: function retroceder1() {window.onmousedown = history.go(-1);} I guess it’s wit “if” or something, but I’m having problems making it. thnx! Last edited by ST; Jan 12th, 2006 at 12:35. |
|
|
|
|||
|
I don't really know if this is what you want, but it could be:
If this is not were you're looking for, then I wouldn't know. Greetz, |
|
|||
|
Re: backwards script
Hey!
First of all, Thanks for your reaction I think your script is the same as mine, just in other way What I need is a script that checks (when you click, and it go backwards) that you still stay in the same site. Let’s say you accidental surf to one of my htm documents and you click backwards hoping you are going backwards in the site structure. The script you gave me (and the one I have) go 1 step backwards in the history, leaving so the site behind. |
|
|||
|
Re: backwards script
could you not use a server side script and a session...where you can track the movment of the user, and then select the record with the latest timstamp for the url?
|
![]() |
| Tags |
| backwards, script |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Need help with this script | korvix | JavaScript Forum | 1 | May 28th, 2008 23:00 |
| [SOLVED] Reading as text file backwards | eon201 | PHP Forum | 4 | Nov 8th, 2007 10:53 |
| Asp script | tolis | Classic ASP | 0 | Feb 3rd, 2007 13:28 |
| Changes to CSS script | Accurax | Web Page Design | 6 | Dec 17th, 2006 16:36 |
| printing out a record set backwards | riotman | Classic ASP | 4 | Feb 20th, 2006 13:13 |