Invalid Property in Internet Explorer
Submitted by benjy on Saturday, February 27, 2010 - 14:09.
I recently spent an hour trying to figure out why once piece of JavaScript code was working fine in FireFox but not in Internet Explorer.
When I eventually installed some IE JavaScript debugging tools and pinpointed the problem I was surprised to find that it was my used of a colours name. Apparently IE does not support grey as a colour and you must specifically give the hexadecimal colour value. It was only for testing that this code was been used but I learnt my lesson the hard way and will never again be using colour names.
I hope this helps someone else with the same problem along the way. Got to love IE right ;)
Add new comment