Click here to Skip to main content
15,880,967 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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,.
Posted

1 solution

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:

HTML
<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...
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900