大家帮我看看这段代码有什么错误
left.jsp的内容如下:
<form action="/leftFrameAction.do" method="post">
<input name="actionCase" type="hidden" >
<table >
<tr>
<td>
<a href="javascript:doSubmit('timeset');" target="main6" class="cpx12hei">时间设置</a>
</td>
</tr>
</table>
</form>
<script language="javascript">
<!--
function doSubmit(actionID)
{
document.forms[0].actionCase.value =actionID;
document.forms[0].submit();
}
//-->
</script>
要实现的功能是点击"时间设置"的时候,将"timeset"作为参数提交给action操作,然后将结果显示在main6框架中,left.jsp这个文件作为整个框架中,名称是main4,但是不知道是什么原因要出错,老是说"缺少对象",如果去掉target="main6"就不会出错!
我怀疑是<a href="">中不能用javacript,因为如果<a href="index.jsp" target="main6" class="cpx12hei"> 时间设置</a>就不会出错!