提交表单问题?
<script language= "JavaScript ">
function link_submit(asp_file)
{
document.index_form.action=asp_file;
document.index_form.submit;
}
</script>
<a href= "javascript:link_submit( 'asp_file '); "> 提交 </a>
想使用上面方法,实现用 <a> 的href 来提交表单,怎么弄呢?
谢谢了!
------解决方案--------------------請試一下下面的答案:
<a href= "javascript:link_submit(); "> 提交 </a>
<script language= "JavaScript ">
function link_submit()
{
document.form1.action= "text2.asp ";
document.form1.submit();
}
</script>