You are here: irt.org | FAQ | JavaScript | Form | 5 | Q1145 [ previous next ]
You can access forms using their position within the document forms array using their index:
document.forms[0]; // - first form in page document.forms[1]; // - second form in page document.forms[document.forms.length-1]; // - last form in page
From a form field (but not the form tag itself) you can also use this.form to refer to the specific form object:
<form> <input type="button" onClick="functionName(this.form)"> </form>