Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to make Button participate in Form?
Message
From
28/01/2001 15:17:31
 
 
To
28/01/2001 12:13:33
General information
Forum:
Internet
Category:
HTML
Miscellaneous
Thread ID:
00469507
Message ID:
00469540
Views:
23
My Button's onclick() has a function call to validate and then send to the desired page but I never thought I could change the form's action from it!

Great! Thanks!

>>>>>>>>>>>>>
>>Q: How do I make this extra button participate in the form, (i.e. like the submit button) sending the results of the form to its following page? (different than the form's action of course).
>
>Just put code in the ONCLICK event of the extra button to change the action of the form, then submit it:
< button onclick='document.forms(0).action="newaction.asp";
>document.forms(0).submit();' >Submit to Page 2< /button >
Something like that should work.
>>>>>>>>>>>>>


Alex Feldstein, MCP, Microsoft MVP
VFP Tips: English - Spanish
Website - Blog - Photo Gallery


"Once again, we come to the Holiday Season, a deeply religious time that each of us observes, in his own way, by going to the mall of his choice." -- Dave Barry
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform