faqts : Computers : Programming : Languages : JavaScript : Forms

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

23 of 32 people (72%) answered Yes
Recently 6 of 10 people (60%) answered Yes

Entry

How can I create one form with both preview and post buttons which submit to two different actions?

Dec 14th, 2001 14:51
Dylan Glockler,


I found an answer on the newsgroup netscape.devs-javascript.
Just use this for each button:
<input type="submit" value="post" onclick="this.form.action 
= 'post.asp'; return true;">
-Dylan