javascript的问题! 你確定你有定義form1?你確定你有定義txtname?你確定txtname包含在form1之內? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 <form name="form1"><input type="text" name="txtname" value="value"></form><input type="button" onclick="form1.txtname.value"><input type="button" onclick="document.all.txtname.value"><input type="button" onclick="document.forms[0].txtname.value"> onclick="form1.txtname.value"这是个什么东西?应该是onclick=submit吧。 "document.forms[0].txtname.value" 并不是一个语句,它不完整,所以会出错,<input type="button" onclick="document.forms[0].txtname.value">————这句单击以后想完成什么功能呢? <form name="form1"><input type="text" name="txtname" value="value"></form><input type="button" onclick="alert(form1.txtname.value)"><input type="button" onclick="alert(document.all.txtname.value)"><input type="button" onclick="alert(document.forms[0].txtname.value)"> 关于arguments.callee 请高手帮忙解决这个问题? 高手请帮忙!怎么样根据输入的数字,显示对应数目的文本框. 用JAVA如何实现作业的布置和提交? 关闭浏览器提示问题 弹出设首页代码,设为首页后不提示 请问怎么样让media player可以在线播放多首歌,一点下一首又换一首呢?谢谢 请问indexOf的逻辑值的-1,0,1分别代表什么意思?我给搞混乱了。 很简单的问题,偶就是不懂 请问,一个难题!!! 皇马有了,巴塞罗那也建了,就差米兰了-------喜欢AC的程序员们请进来一起策划做一个米兰的中文网站吧 怎么自动把网页的内容发送到邮箱里面?
<input type="text" name="txtname" value="value">
</form>
<input type="button" onclick="form1.txtname.value">
<input type="button" onclick="document.all.txtname.value">
<input type="button" onclick="document.forms[0].txtname.value">
这是个什么东西?
应该是onclick=submit吧。
<input type="text" name="txtname" value="value">
</form>
<input type="button" onclick="alert(form1.txtname.value)">
<input type="button" onclick="alert(document.all.txtname.value)">
<input type="button" onclick="alert(document.forms[0].txtname.value)">