PDA

View Full Version : how to access contents of DIV layer using JS?


homerUK
03-23-2003, 12:07 PM
hey,

I am trying to access the contents of a DIV tag using JS... I previously used an iFrame which was done like this:

iFrame_name.document.documentElement.innerHTML

I have tried using this for the DIV layer, but it doesnt seem to work!

DIV_name.document.documentElement.innerHTML

..........any ideas?!

:p

liorean
03-23-2003, 12:23 PM
document.getElementById([string ID]).innerHTML