document.write(string) so why not div.write(string) ?
Hi !
I've created a labelled <div> section, and want to know if there is a javascript command to write something in the <div> section (like the document.write(string) command does to the wole document)
give the div an id
<div id="divid"></div>
<script type="text/javascript">
document.getElementById("divid").innerHTML = "hi";
</script>
you could also put html in the div just like you could w/ document.write();