backwards script

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.



Go Back   Webforumz.com > Main Forums > Program Your Website > JavaScript Forum

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Jan 12th, 2006, 12:32
ST ST is offline
Junior Member
Join Date: Jul 2005
Posts: 20
Thanks: 0
Thanked 0 Times in 0 Posts
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.
Reply With Quote

  #2 (permalink)  
Old Jan 12th, 2006, 15:31
Junior Member
Join Date: Jan 2006
Location: Leeuwarden, NL
Posts: 25
Thanks: 0
Thanked 0 Times in 0 Posts
Post Re: backwards script

I don't really know if this is what you want, but it could be:
HTML: Select all
<HTML>
<BODY>
<a href="#" onClick="history.go(-1)">Back</a> 
<input type=button value="Back" onClick="history.go(-1)">
<!-- Change the value of -1 to any number of pages you would like to send your visitors back -->
</BODY>
</HTML>
Text-link and button-link
If this is not were you're looking for, then I wouldn't know.
Greetz,
Reply With Quote
  #3 (permalink)  
Old Jan 12th, 2006, 18:26
ST ST is offline
Junior Member
Join Date: Jul 2005
Posts: 20
Thanks: 0
Thanked 0 Times in 0 Posts
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.
Reply With Quote
  #4 (permalink)  
Old Jan 12th, 2006, 21:37
Highly Reputable Member
Join Date: May 2005
Location: U.K
Age: 21
Posts: 739
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to benbramz
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?
Reply With Quote
Reply

Tags
backwards, script

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

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


All times are GMT. The time now is 00:09.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43