当前位置: 代码迷 >> Java Web开发 >> [求助]请问为什么会报错?请大家帮帮忙
  详细解决方案

[求助]请问为什么会报错?请大家帮帮忙

热度:206   发布时间:2005-10-14 13:09:00.0
[求助]请问为什么会报错?请大家帮帮忙
我在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();">

这样。


----------------解决方案--------------------------------------------------------
我同意楼上的,你的函数体怎么可以没有  { }  呢?
----------------解决方案--------------------------------------------------------
  相关解决方案