[求助]请问为什么会报错?请大家帮帮忙
我在imdex.asp页面下写了这些语句:<script language="javascript" type="text/JavaScript">
function openwin()
alert("111");
</script>
<input type="button" name="all" value="详 细" style="WIDTH: 106px" title="查看详细信息" onClick="JavaScript:openwin();">
为什么点button的时候会报错说缺少对象
请大家帮帮忙
[此贴子已经被作者于2005-10-14 13:11:32编辑过]
搜索更多相关主题的帖子:
会报
----------------解决方案--------------------------------------------------------
<script language="javascript" type="text/JavaScript"> function openwin() { alert("111"); } </script> <input type="button" name="all" value="详 细" style="WIDTH: 106px" title="查看详细信息" onClick="JavaScript:openwin();">
这样。
----------------解决方案--------------------------------------------------------
我同意楼上的,你的函数体怎么可以没有 { } 呢?
----------------解决方案--------------------------------------------------------