Reapply style after adding content with JavaScript
<p>I will try to expand my problem:</p>

<p>I have a link:</p>

<pre><code>&lt;a href="#" onClick="Display(); return false;"&gt;Display&lt;/a&gt;
</code></pre>

<p>I have some styles:</p>

<pre><code>&lt;style type="text/css"&gt;
p {
 background-color: #AFA99B;
}
&lt;/style&gt;
</code></pre>

<p>And the folowing js code:</p>

<pre><code>function printf(MyHtml){
document.write(MyHtml); 
}

function Display(){
printf("&lt;p&gt;some html code&lt;p&gt;");
//...
}
</code></pre>

<p>So when the user click the link, I must add some html content to the body &amp; the new added elements must use the styles defined.
That's all.</p>
