日期:2014-05-16  浏览次数:20387 次

document.form1.username.value' 为空或不是对象
不知道怎么回事,我的页面老是出现
行:98
字符:3
代码:0
document.form1.username.value '   为空或不是对象
的错误
我可以肯定我的代码没问题,但就是不知道为什么老是出现这样的错误,
大家来帮帮我

------解决方案--------------------
代码贴出来看看亚
------解决方案--------------------
没代码看不出来
就是说没有document.form1.username或者document.form1
------解决方案--------------------
一般出现这种情况应该在哪方面着手
document.all.getElementById( "id ").value= " "
也出现这样的错误
------解决方案--------------------
alert(document.form1);看是个什么东西。
document.forms[0]...
------解决方案--------------------
估计是没定义这样的id
或者js代码放置的位置与定义的页面不在一起