how to construct a long string
        Posted  
        
            by david
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by david
        
        
        
        Published on 2010-04-09T19:17:56Z
        Indexed on 
            2010/04/09
            19:23 UTC
        
        
        Read the original article
        Hit count: 218
        
JavaScript
I need to construct a long string with javascript. Thats how i tried to do it:
var html = '<div style="balbalblaba"> </div>';
for(i = 1; i <= 400; i++){
   html=+html;
};
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.
can someone help me?
© Stack Overflow or respective owner