【转】theform.submit(); 对像不支持些属性!

 

代码
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”,改过来就好了命名重复

 

 

posted @ 2009-12-31 10:06  哥本哈根  阅读(368)  评论(0编辑  收藏  举报