JSchwarz
07-14-2003, 10:42 AM
How can I create a variable (called thisForm) which points to the current form? Or, when does the JavaScript 'this' keyword refer to the current form?
I call function initialize() in the onLoad of every form. Within initialize() is the line thisForm = document.forms[0];The problem is that not all of the forms are the first form on the page.
What I need is a generic way to refer to the current form, so I can assign it to thisForm.
Thanks in advance.
Jeff
I call function initialize() in the onLoad of every form. Within initialize() is the line thisForm = document.forms[0];The problem is that not all of the forms are the first form on the page.
What I need is a generic way to refer to the current form, so I can assign it to thisForm.
Thanks in advance.
Jeff