.
Developer Spot - Web Development Tutorials
 


Web Hosting Directory
Budget Web Hosting Linux Web Hosting Small Business Hosting
Windows Web Hosting Reseller Web Hosting Web Hosting Articles

Changing Form Action URLs On-The-Fly

By Will Bontrager
2003-09-03
Reader Rating: 2 out of 5
Bookmark Print Version
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.



Article Pages:
Introduction
Mention #1
Mention #2, 3 & 4
Method #5
Mention #6
The Complete Example

Copyright 2004 Bontrager Connection, LLC


 Rate this article:   Poor          Excellent 


If you found this article interesting, you may want to read these as well:



 
Development Tutorials
ASP
CGI & Perl
CSS
HTML
Java
JavaScript
Linux
PHP
XML




More Resources
Web Hosting Articles
Development Tutorials: CGI & Perl - CSS - HTML - Java - JavaScript - Linux - PHP - XML