Changing Form Action URLs On-The-Fly
By Will Bontrager2003-09-03
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.
Tutorial Pages:
» Introduction
» Mention #1
» Mention #2, 3 & 4
» Method #5
» Mention #6
» The Complete Example
Copyright 2004 Bontrager Connection, LLC
