请这一段代码错在哪里?求指教.

ayu11789 2002-07-04 01:14:01
<script language=vbscript>
sub window_onload
text3.value="2001-12-31"
end sub
</script>
<input type="file" name="text3" >

<script language=vbscript>
sub window_onload
text3.value="2001-12-31"
end sub
</script>
<input type="file" ID="text3" >

提示,找不到对象 TEXT3
...全文
63 6 打赏 收藏 转发到动态 举报
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
meizz 2002-07-11
  • 打赏
  • 举报
回复
http://www.csdn.net/expert/topic/861/861523.xml?temp=.9684259

name主要用于form元素,比如form input select
id 一般用于一些非控件元素,比如body table tr td h1 span div等
meizz 2002-07-11
  • 打赏
  • 举报
回复
To: ayu11789(阿余)
input控件的标记是用name 而不是用id
这就是你找不到对象的原因所在。
ayu11789 2002-07-11
  • 打赏
  • 举报
回复
你讲的方法和我的最初目的不一样,不过,感谢你的支持我还是给分你吧
fokker 2002-07-04
  • 打赏
  • 举报
回复
<script language=vbscript>
sub window_onload
text3.value="2001-12-31"
end sub
</script>
<input type="text" name="text3" >
fokker 2002-07-04
  • 打赏
  • 举报
回复
<script language=vbscript>
sub window_onload
text3.value="2001-12-31"
end sub
</script>
<input type="text" name="text3" >
fokker 2002-07-04
  • 打赏
  • 举报
回复
<script language=vbscript>
sub window_onload
text3.value="2001-12-31"
end sub
</script>
<input type="text" name="text3" >

10,608

社区成员

发帖
与我相关
我的任务
社区描述
Web 开发 其他
社区管理员
  • 其他
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧