This is a tricky topic that deserves a longer explanation than this
(and also you need to do some studying).
However, here's the basic concept:
<div id=3D"theLayer" style=3D"position:absolute">The div</div>
<!-- It has to be absolutely positioned, position:relative might work as
well-->
Then do this to write content to it:
document.layers["theLayer"].document.write("Here's the text...");
/Robert
-----Original Message-----
From: chrscote@9... [mailto:chrscote@9...]
Sent: den 26 februari 2003 21:43
To: JavaScript HowTo
Subject: [javascript_howto] Help with Div tags
How do I change the contents of a Div tag using Javascript in Netscape
4?
I've been using the innerHTML for now since I only use the newer
versions
of Netscape, but some people who'll use my page are using Netscape 4.
Is
there a way to do this?
Chris