我的一段javascript语句在某些机器上失效,高分请教!!
jians 2003-08-19 05:16:53 <html>
<script language="JavaScript">
function onOkBtnClick(Form)
{
var iFuncType = Form.FuncType.value;
if (iFuncType != "Cancel" && iFuncType != "Apply")
{
alert("请选择功能");
return false;
}
body.style.cursor='wait';
Form.submit();
return true;
}
function SetCancelType(Form)
{
Form.FuncType.value = "Cancel";
}
function SetApplyType(Form)
{
Form.FuncType.value = "Apply";
}
</script>
<body>
<form name="SelectFunctionForm">
<input type="radio" value="Apply" name="FuncType" OnClick="SetApplyType(SelectFunctionForm)">申请功能
<input type="radio" value="Cancel" name="FuncType" OnClick="SetCancelType(SelectFunctionForm)">取消功能
<img border="0" onclick="onOkBtnClick(SelectFunctionForm)" src="image/button_queding.gif" width="68" height="22">
</form>
</body>
</html>
以上是大概的语句,在绝大部分机器都没有问题,但在某些机器上我选择了
其中任一个radio button,仍然报“请选择功能”,也就是说radio button
的onClick没有起效果。为什么呢,有什么IE的设置会造成该问题?