I've never used document.getElementsByTagName, but something that the W3C
DOM specifies that you can use to reference the <bodytag is document.body.
This may not help in referencing the <htmltag, but it sounds like you can
survive with either one. Something else you could do is add an id attribute
to the <bodyor <htmltag and use document.getElementById, which is
usually more reliable. You may also want to try writing some test code to
see exactly what is returned by document.getElementsByTagName('html') to
help you determine where the problem is. Good Luck!
--
Nathan Sokalski
nj********@hotmail.com http://www.nathansokalski.com/
"AAaron123" <aa*******@roadrunner.comwrote in message
news:uE**************@TK2MSFTNGP03.phx.gbl...
Warning 2 Error updating JScript IntelliSense: ..snip.. ColorScrollbar.js:
'document.getElementsByTagName(...).0.style' is null or not an object
I believe the following is what it is complaining about:
var htmlStyle = document.getElementsByTagName('html')[0].style;
I tried 'body' instead of "html" and got the same error in my error list
pane.
Do you understand what is wrong?
Thanks