how to write html code to the DOM
<pre><code>&lt;!DOCTYPE html&gt;
&lt;html&gt;
&lt;body&gt;
&lt;form name=myform&gt;
&lt;input type=button value="Try it now" 
onClick="
s=prompt('Enter your first name','Name');
n=prompt('Enter your first name','Name');
document.write('hello'+s +n+' !')"&gt;
&lt;/form&gt;
&lt;/body&gt;
&lt;/html&gt; '
</code></pre>

<p>In the above code, I would like to replace 'hello' with the code below. 
In the place of hello put this code:<br>
<code>&lt;div class="hreview"&gt;
&lt;span class="item"&gt;
      Reviewed by  &lt;span class="reviewer"&gt;john paul&lt;/span&gt;
   Rating: 
   &lt;span class="rating"&gt;5&lt;/span&gt;
&lt;/div&gt;</code></p>

<p>it should display the code with out formatting the code what i had write in the place of hello.</p>
