IE8 提示javascript “对象不支持此属性或方法”
问: IE8 提示 “对象不支持此属性或方法”if request("otype")="tuihuo" then
省略。。
if request("otype")="diaochu" then
省略
---------------------
<script language="javascript">
<!--
var ie =navigator.appName=="Microsoft Internet Explorer"?true:false;
function $(objID)
{
return document.getElementById(objID);
}
function dosubmit(otype) {
if (document.form1.shuliang.value =="")
{
alert(" 退货数量不能为空!");
return false;
}
if (document.form1.fctime.value =="")
{
alert(" 退货日期不能为空!");
return false;
}
document.form1.action='kucunfcd.asp?otype='+otype;//IE8提示这一行有问题,但用安卓浏览器正常
document.form1.submit();
}
//-->
</SCRIPT>
<form method="post" name="form1">
<input type="button" name="tuihuo" value="退 货" onClick="dosubmit('tuihuo')" tabindex="9"/>
<input type="button" name="diaochu" value="调 出" onClick="dosubmit('diaochu')" tabindex="10" />
</form>