Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Back to previous page

Status
Not open for further replies.

celticking

Technical User
Feb 15, 2001
69
US
I have a profile for a user in a pop-up window. I have a link on this page to send that user a message, a form opens in the same window. I use the following code...

form action="action.lasso" method="post">

<input type=&quot;submit&quot; name=&quot;-add&quot; value=&quot;Submit&quot;>

I'd prefer, when a user submits the form, to be sent back to the original profile page, back one. I've tried using onClick=&quot;history.back()&quot; and onSubmit but neither seems to work.
Cany anyone help please?
 
Thanks, i'll try it out. I think i have some code elsewhere over riding this, i'll let you know. Thanks.
 
As far as I know, history.back() and history.go(-1) do exactly the same thing. Am I wrong?
Meddle not in the affairs of dragons,
For you are crunchy, and good with mustard.
 
don't know... sounds reasonable to me...

history.go(-1) is just the way i have always seen it done...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top