how to construct a long string
<p>I need to construct a long string with javascript. Thats how i tried to do it:</p>

<pre><code>var html = '&lt;div style="balbalblaba"&gt;&amp;nbsp;&lt;/div&gt;';
for(i = 1; i &lt;= 400; i++){
   html+=html;
};
</code></pre>

<p>When i execute that in firefox its taking ages or makes it crash. what is the best way to do that? What is generally the best way to construct big strings in JS.</p>

<p>can someone help me?</p>
