HTML Tutorial


 Forum HomeForum Home   FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
RegisterRegister - Not registered yet? Got something to say? Join HTML Code Tutorial!
How to go to previous web page--
Post new topic   Reply to topic    HTML Help Forum Index -> General HTML
View previous topic :: View next topic  
Author Message
Bob_Rancher



Joined: 31 May 2008
Posts: 1

PostPosted: Sat May 31, 2008 11:03 am     How to go to previous web page-- Reply with quote

Yes, I searched, found nothing---

I have a pretty basic Forum. Users must log in to the Forum - from inside the Forum they can log in to their email accounts - it is seamless, it appears to the user that they are still in the Forum site, but they are actually in a different site--- The email client has a 'log out' button -

I have code that will return the user to my forum:

<script type="text/javascript">
<!--
document.location.href = "http://www.Your_Home_page/";
//-->
</script>

BUT, this doesn't work for me because it returns the user to the forum HOME PAGE, and they must log in again.

In the same situation, if the user logs into the email client, and then rather than clicking on the 'Log Out' button, they hit the browser 'Back' button, it takes them straight back to the forum, without the need to log back in--

I would like to have code behind the 'Log Out' button that will do the same, take them straight back to the forum, not just log them out of the email client.

make sense???

Thanks very much for your help!!
sticks464



Joined: 31 Dec 2006
Posts: 1110

PostPosted: Sat May 31, 2008 1:53 pm     Reply with quote

Give this a try. You can create a link anywhere to go back.

Code:
<a href="javascript: history.go(-1)">Back</a>
sfreemanHTML



Joined: 31 May 2008
Posts: 1

PostPosted: Sat May 31, 2008 2:57 pm     thanks , BUT no success Reply with quote

Thanks, anyway, but that just created a link-- I don't need a link --- What I need is that when the user logs out of the email progam that he is returned to the forum--- that link just puts you back to the login page for the email system---
thanks for trying-

sticks464 wrote:
Give this a try. You can create a link anywhere to go back.

Code:
<a href="javascript: history.go(-1)">Back</a>
Newbie101



Joined: 09 Oct 2008
Posts: 35

PostPosted: Fri Oct 10, 2008 6:37 pm     just curious Reply with quote

newbie answer but.
can't you link to another page that is identical to the index page except without all your log in coding.

Or I'd try an if else statement ahead of your log in code. probably too simple a response, but it rang a bell
Display posts from previous:   
Post new topic   Reply to topic    HTML Help Forum Index -> General HTML All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
HTML Help Archive
Powered by phpBB © 2001, 2005 phpBB Group
HTML Help topic RSS feed 

 
HOSTING / DESIGN
MAKE MONEY

Home
  |   Tutorials   |   Forum   |   Quick List   |   Link Directory   |   About
Copyright ©1997-2002 Idocs and ©2002-2007 HTML Code Tutorial