faqts : Computers : Programming : Languages : JavaScript : DHTML

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

33 of 47 people (70%) answered Yes
Recently 5 of 10 people (50%) answered Yes

Entry

How do I access nested layers?

May 27th, 2000 09:42
Martin Honnen, Pat Friedl,


In IE4+ and NN6 there is no difference to referencing a top level layer 
or a nested layer just ID the layer and use
  document.all['layerID']
for IE and
  document.getElementById('layerID')
for NN6. Only NN4 makes nested layers accessible with nested references 
so there you need to script
  window.document['outerLayerID'].document['innerLayerId']
where you have to add
  .document['layerID']
for further levels of nesting