Output using innerHTML
<p>I need to output the contents of a Javascript variable which has html code in it:</p>

<pre><code>var jsVar = '&lt;div&gt;
&lt;p&gt; Sample text &lt;/p&gt;
&lt;img src="some image.jpg"  alt="" /&gt;
&lt;div&gt;';
</code></pre>

<p>I want to add it to an object on the page using innerHTML. How do I do it ?</p>
