代码
Microsoft JScript 运行时错误: 对象不支持此属性或方法
<script language="javascript">
<!--
function __doPostBack(eventTarget, eventArgument)
{
var theform;
if (window.navigator.appName.toLowerCase().indexOf("netscape") > -1)
{
theform = document.forms["releasead"];
}
else
{
theform = document.releasead;
}
theform.__EVENTTARGET.value = eventTarget.split("$").join(":");
theform.__EVENTARGUMENT.value = eventArgument;
theform.submit(); ~~~~~~~~~~~~~~~~~提示这里出错
}
// -->
</script>
原来是表单里也有一个控件取了名“submit”,改过来就好了命名重复
<script language="javascript">
<!--
function __doPostBack(eventTarget, eventArgument)
{
var theform;
if (window.navigator.appName.toLowerCase().indexOf("netscape") > -1)
{
theform = document.forms["releasead"];
}
else
{
theform = document.releasead;
}
theform.__EVENTTARGET.value = eventTarget.split("$").join(":");
theform.__EVENTARGUMENT.value = eventArgument;
theform.submit(); ~~~~~~~~~~~~~~~~~提示这里出错
}
// -->
</script>
原来是表单里也有一个控件取了名“submit”,改过来就好了命名重复