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 derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

changing destination of a form

Status
Not open for further replies.

WebRic

Technical User
Sep 21, 2004
95
GB
Is it possible to have to submit buttons... one going to one destination the other submitting to the current page?

I'm guessing that it might have to be done using an onClick that changes the action of a form?

My questions are:
a) Is there a simpler way of doing it?
b) If not, what how would I adjust the action of a form?


Thanks in advance.


Richard
 
a) I don't think so
b)
Code:
document.forms['[i]formname[/i]'].action="[i]new_url[/i]";


Tracy Dryden

Meddle not in the affairs of dragons,
For you are crunchy, and good with mustard. [dragon]
 
Great, thanks for the help.

Richard
 
You're welcome.


Tracy Dryden

Meddle not in the affairs of dragons,
For you are crunchy, and good with mustard. [dragon]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top