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)"> firstChild 问题 关于onclick 中加入判断问题 请问js怎么比较两个时间日期的大小呢? 有直接写出对象名称的法吗? 高手请进!如何实现这样的功能! select的已选代码是什么啊? 如何使用JS代码实现循环显示内容? 如何在<DIV>里面增加一个元素 问一个JSP和XML或者JSP与javascript之间的问题! jsp包含页面 皇马有了,巴塞罗那也建了,就差米兰了-------喜欢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)">