I am trying to make an onsubmit function that processes some form data, then depending on what submit button was clicked, submits the data to a different page.
is there anyway to do something like:
if (document.form.submit.value == 'Page One')
document.form.action = pageone.html
else
document.form.action = pagetwo.html
thanks for the help in advance.
is there anyway to do something like:
if (document.form.submit.value == 'Page One')
document.form.action = pageone.html
else
document.form.action = pagetwo.html
thanks for the help in advance.