Inserting a Variable String into the javascript prototype expression
<p>Pardon me for giving you a confusing title on this problem.
I'm really confused and i don't know how to put it in other words.</p>

<p>So here is what I what to accomplish.</p>

<p>I am making a Custom Javascript Object to store data. </p>

<p>I have automated this process and inserted each instance of the object into an array.</p>

<p>I am making a loop statement to invoke the unique property value of each instance of the object.</p>

<p>When I want to use an expression, the property name of the object would be variable since i don't know which one it is.</p>

<p>Basically I need to incorporate a string value into the prototype expression.</p>

<p>e.g</p>

<pre><code>document.getElementById('text').style."fontsize"=value;
</code></pre>

<p>since I cannot do this directly, i thought possibly I could use the eval function:</p>

<pre><code>eval('document.getElementById("text").style.' + buttons[i].cssvalue + '="39px";');
</code></pre>

<p>but this still doesn't work.</p>

<p>Can this be fixed or ss there an alternative way to accomplish this?</p>

<p>If there are some unclear stuff, please point out and I will try to elaborate.</p>

<p>Thanks in advance.</p>
