Can I ask you why you want to do it like this (IE??

)? If I were you, I would provide more info.
If you want to do some javascript processing before submitting the form, I would suggest using a submit button and then calling the javscript function using the attribute onsubmit for the form.
But again. It depends on what you want.
-edit- And of course, Welcome to JavaRanch
Max