Possible Duplicate:
javascript - document.write error?
I want to write html into javascript. I am sure this question, has been asked ofter, I know its simple but I can't figure it out.
I tried this:
<script>
document.write("<h1>This is a heading</h1>");
document.write("<p>This is a paragraph</p>");
</script>
But it removes all the other html.
I know this is noob question, I pretty unexperienced at javascript...