Invalid Property in Internet Explorer

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

The content of this field is kept private and will not be shown publicly.

Plain text

  • No HTML tags allowed.
  • Lines and paragraphs break automatically.
  • Web page addresses and email addresses turn into links automatically.
CAPTCHA
This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.