[thelist] NS4 object ref..

Benjer futureweb at macmail.com
Wed Jan 8 10:57:01 CST 2003


> how would I reference the image
> object 'tbl' in that browser:
>
> ---------------------
> <div id="hidden"><img src="" name="tbl" border="0" height="0"
> width="0" /></div>
> ----------------------

document.images['tbl'].src='images/mynewimage.gif'

I think that¹s it... Unless you need to access the layer as well...

document.layers['hidden'].document.images['tbl'].src='images/mynewimage.gif'

Is using hidden as a name confusing as its used to display/hide divs in
javascript?

benjer





More information about the thelist mailing list