.innerHTML is used when you trigger an event but if you just want to display the text how would you go about do it??
I don't want to used document.writeln because it will "Wipe out all the contents" of that page.
So I have some HTML text and javascript text. I would like both to display on my page.
Here's my code
<html>
<head>
<script type="text/javascript">
function display() {
document.writeln("How do I make both text appear");
}
</script>
</head>
<body onload="display()">
I would like this text in the body to remain.
<script type="text/javascript">
display();
</script>
</body>
</html>
thanks