onclick="doSth(this.form)"
<script>
function doSth(form){
form.action="../??.do";
form.submit();
}
</scrpt>
类似这样子,good luck!