Utilising cssText to set styles with JavaScript
<p>I was going through Nicholas Zakas presentation on JavaScript here : <a href="http://www.slideshare.net/nzakas/writing-efficient-javascript" rel="nofollow">http://www.slideshare.net/nzakas/writing-efficient-javascript</a> (slide number: 89/139)</p>

<p>He recommends using cssText property whenever you are setting a bunch of styles through JavaScript. The best solution is obviously adding those styles to a class and then using JS to add the classname to an element.However, in many situations, We resort to just setting the properties directly within JS when the number of properties are low.</p>

<p>It seems from his presentation that using cssText property would be more efficient in such scenarios.I tried to look up more on the property but couldn't find much information.</p>

<p>Has anyone used the 'cssText' property ? It would be great to have some more technical info on how the property helps.</p>
