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?

61 of 77 people (79%) answered Yes
Recently 7 of 10 people (70%) answered Yes

Entry

Can I change the display style attribute of a page element in NN4?
Why is my IE4/5 collapsible list code not working with NN4?

Feb 17th, 2000 17:19
Martin Honnen,


IE4/5 and NN6 allow elegant programming of collapsible lists and other 
dhtml application where you set
  elementReference.style.display = 'none'
to hide an element and have the other content reflowed. With NN4 that 
is not supported, you can only statically with css set the display 
property but not change it dynamically with javascript.
If you want to have collapsible lists or similar application you have 
to write your own code positioning elements, hiding them and reposition 
elements around.
developer.netscape.com in the javascript view source section has a 
cross browser collapsible list which applies this technique.