Online Shopping : Computers : Programming : Languages : JavaScript

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

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

Entry

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
</div>
you can write content into it on-the-fly by:
document.joesLayer.document.write('<b>hello this is my new content</b>')
document.joesLayer.document.close()
This only works with NS4
Hope this helps,
Joe
http://www.businessian.com
http://www.computerstan.com
http://www.financestan.com
http://www.healthstan.com
http://www.internetstan.com
http://www.moneyenews.com
http://www.technologystan.com
http://www.zobab.com
http://www.healthinhealth.com
http://antworten.leblogguide.com