[thelist] Variables and the DOM

Peter-Paul Koch gassinaumasis at hotmail.com
Wed Oct 10 07:08:56 CDT 2001


>Apologies for the dumb question, but can I/how do I achieve the following?
>
>var objDOM = document.forms[0];
>
>So that I can use the following statement:
>
>objDOM.elements[0].value = 1;

This works. objDOM now has become a reference to document.forms[0] so that 
you can do everything with it you can do with document.forms[0]

ppk

_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp





More information about the thelist mailing list