display html content in div
<p>How to display html content </p>

<pre><code> &lt;script type="text/javascript"&gt;
    function replaceContent(show) {

         var display = new Array();
         display[1] = 1.html;
         display[2] = 2.html; 

         document.getElementById("ShowItems").innerHTML = display[show];

    }
    &lt;/script&gt;

    &lt;a href="#" onclick="replaceContent(1)"&gt;1&lt;/a&gt;
    &lt;a href="#" onclick="replaceContent(2)"&gt;2&lt;/a&gt;
    &lt;a href="#" onclick="replaceContent(3)"&gt;3&lt;/a&gt;
    &lt;div id="ShowItems"&gt;...&lt;/div&gt;
</code></pre>

<p>thankyou.</p>
