I\'ve been using
document.forms[0].fieldname.value
to get values in javascript from a form, but I\'d like to use a name to reference the f
The forms collection is standard DOM 1, there is nothing wrong with using it.
document.forms.formId.elements.field