I thought it would be something like an "eval" but it is not. I want to
refer to an object called "myobject".
I can normally do this:
document.myobje ct.innerText= "43"
But since I don't know the name of the object, I need something like:
document["myob" + "ject"].innerText= "43"
But it doesn't work. Can anyone help? Thanks,
Mike
refer to an object called "myobject".
I can normally do this:
document.myobje ct.innerText= "43"
But since I don't know the name of the object, I need something like:
document["myob" + "ject"].innerText= "43"
But it doesn't work. Can anyone help? Thanks,
Mike
Comment