kmbac
asked on
Mailto form and onSubmit function
Can someone please tell me how to get a mailto form to access another html page once a user presses the "Submit" button? I am having trouble with the onSubmit event. Here is what I have:
<INPUT TYPE=SUBMIT VALUE="SUBMIT" onSubmit="takeOff()">
I can't get the function written correctly (obviously since I cannot get it to work). I have tried location.href, but not sure if the syntax is correct. Any suggestions?
<INPUT TYPE=SUBMIT VALUE="SUBMIT" onSubmit="takeOff()">
I can't get the function written correctly (obviously since I cannot get it to work). I have tried location.href, but not sure if the syntax is correct. Any suggestions?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
To add, if I would have used the onClick event, it would have worked also. I tried the following:
function takeOff()
{location="thanks.html";
}
Unfortunately, I thought I needed to use the onSubmit event.
Thanks a lot,
Karsten
function takeOff()
{location="thanks.html";
}
Unfortunately, I thought I needed to use the onSubmit event.
Thanks a lot,
Karsten
If I answered the question to your liking and you need no further assistence, could please grade my answer so the question gets sent to the PAQ?
Thanks,
Josh
Thanks,
Josh
ASKER
Thanks again. Sorry for the delay.
ASKER