Can someone please tell me what is the cause of this error (see attached screen shot).
Thanks,
Printable View
Can someone please tell me what is the cause of this error (see attached screen shot).
Thanks,
The if(document.getElementById) you have - what is that supposed to do??
Are you trying to see if "boxdescription" exists as an element?
If so you would want to do if(document.GetElementById("boxdescription")) instead.
But regardless - that error is saying that .innerHTML is not an object on what is to the "left of it".
I use FIREBUG to debug the JAVASCRIPT while running in the browser - so these types of issues are easy to see in the WATCH and CONSOLE windows...
I removed the "value" and got the same error. No difference!
How is boxdescription defined on your page?
Is that IF statement helping you be cross-browser?
Why not use jQuery for that - it's really helpful in that regard.