I use this code to dynamically change the visibility of a div:
The first code statement works great in all browsers (including IE7+) but not in IE6, so I added the second statement, but no joy.
Any suggestions on getting the style property to work in IE6?
Probably no one should support that crap browser anyway, but I'm stubborn.
Thanks in advance for any enlightenment.
Code:
document.getElementById('div_id').style.display="block";
document.all.div_id.style.display = "block"; // for IE 6
The first code statement works great in all browsers (including IE7+) but not in IE6, so I added the second statement, but no joy.
Any suggestions on getting the style property to work in IE6?
Probably no one should support that crap browser anyway, but I'm stubborn.
Thanks in advance for any enlightenment.