variable contents as object reference

wxdqz

New Member
I have a function with a variable in it.
I have form textbox elements that sends text to the variable, based on which form the textbox is in.

I have it to the point where my variable, after adding "document." to the beginning and ".value" to the end, has "document.formname.elementname.value" in it. I have tested this by setting other forms' element values to the the contents of the variable.

What I want to do is use the text that is in the variable as an object reference. Instead of the output that is put into the other forms' elements being "document.formname.elementname.value", I want it to read with the actual value of document.formname.elementname.value.

Just to help you know the direction I'm going with this script, I'm making it so when the user changes the text in one of my forms, it copies it to all of the rest of the forms. I have been able to do this before, but I didn't pass the form names from the forms, I just manually wrote everything out, which takes up lots of space.

If anyone can help me out with this, it would be greatly appreciated.
 
Back
Top