Online Shopping : Computers : Programming : Languages : JavaScript

+ Search
Add Entry AlertManage Folder Edit Entry Add page to
Did You Find This Entry Useful?

10 of 17 people (59%) answered Yes
Recently 6 of 8 people (75%) answered Yes


In IE5, I can put dynamic content using the object.innerText. How should I do this in netscape because NS doesn't have this property for document?

May 14th, 2009 12:25
tikane tinjane, ha mo, Joe Hill, HUI HUI,

Netscape 6 can use the object.innerHTML (though it's not supposed to).
Netscape 4 is different.
Say you had the following div layer:
<div id='joesLayer' style='position: absolute; left: 100px; top: 100px'>
Some html here
you can write content into it on-the-fly by:
document.joesLayer.document.write('<b>hello this is my new content</b>')
This only works with NS4
Hope this helps,