Click to See Complete Forum and Search --> : Using DIV tag in DHTML


July 14th, 1999, 06:00 AM
Can i change the text inside the DIV tag on the fly?
Suppose if i click a button the content inside the DIV tag should change.
How can u do this . It should work both with IE and Netscape.

Please let me know it is very urgent.

Ryan@Neoworx
July 14th, 1999, 10:28 AM
Only do-able in IE (I believe)

<DIV id="myDiv">some text.</div>

and the script:

document.myDiv.innerText = "new text."

NeoWorx Inc.
Makers of NeoTrace, NeoLite, and other upcoming products
http://www.neoworx.com/