Javascript use variable as object name
<p>I want to use the value of a variable to access an object.</p>

<p>Let's say I have an object named myobject.</p>

<p>I want to fill a variable with this name and use the variable to access the object.</p>

<p>Example:</p>

<pre><code>var objname = 'myobject';
{objname}.value = 'value';
</code></pre>
