Changing Form Action URLs On-The-Fly
By Will Bontrager
2003-09-03
Reader Rating:

Mention #6
The submit button of the form is what causes the JavaScript to run. It's an onClick attribute:
<input
type="submit"
value="Send It!"
onClick="return ActionDeterminator();">
When clicked, the JavaScript function ActionDeterminator()determines the alternate action URL.
Copyright 2004 Bontrager Connection, LLC
If you found this article interesting, you may want to read these as well:
|