Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to reference controls in HTML page?

Status
Not open for further replies.

longmatch

Programmer
Nov 1, 2001
406
I would like to know how to reference controls in HTML page. A text type of input need to be assigned a value (current date). How to reference this input box? How to assign a value?

Thanks

Haijun
 
Code:
document.formname.fieldname.value = "somevalue";
suubstitute YOUR formname, fieldname and somevalue Tracy Dryden
tracy@bydisn.com

Meddle not in the affairs of dragons,
For you are crunchy, and good with mustard. [dragon]
 
How can I set a current date using a function? I would like to have the date appearing when the form is open and current date will be displayed.

Thanks

Haijun
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top