In article <10****************@iris.uk.clara.net>, "Konrad Mathieu"
<no****@nospam.com> writes:
How do I - within in a function - make Javascript recognize a string as a
variable name?
Thanks and cheers,
Konrad
How you do that depends on what the string's variable representation
represents.
For the most part, you simply use bracket notation.
If the string points at a variable, window['StringHere'] will give you a
reference to global variables (there are some cavaets to it I believe).
If its a name of a form element:
document.forms[varName].elements[varName2].propertyName
--
Randy
All code posted is dependent upon the viewing browser
supporting the methods called, and Javascript being enabled.