什么是document.forms? [英] what is document.forms?
本文介绍了什么是document.forms?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
这条线的意思是什么
document.forms ["thisform"].Command.value ="0"
我正在使用经典的asp.但是我没有进行迁移,所以.
what is the mean of the line
document.forms["thisform"].Command.value="0"
I am working in classic asp.but i m not migrating it,.
推荐答案
"document.forms"是表单中可能存在的表单的集合页.通常,您只有一个. ``.Command''是页面上位于表单块内的控件的名称或 Id . "Value"是它的值,例如其文本内容"thisform" 是您所引用的特定名称,例如:
Hi, ''document.forms'' is the collection of forms that may exist on your page. Mostly you will only have one. ''.Command'' is the name or Id of a control on your page that is inside a form block. ''Value'' is it''s value such as it''s text content ''thisform'' is the name of the specific for you are referring to, For example:
<form method="post" name="thisform">
<input type="hidden" name="Command" />
<input type="submit" value="submit" />
</form>
<form method="post" name="someOtherFormName">
...
</form>
希望这对您有帮助...
hope this helps...
这篇关于什么是document.forms?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文