1. Home
  2. Computing & Technology
  3. JavaScript
photo of Stephen Chapman
Stephen's JavaScript Blog

By Stephen Chapman, About.com Guide to JavaScript since 2004

Testing Colours

Friday August 14, 2009

JavaScript irons out browser differences

Testing what colour or background colour part of your page is set to is not as straightforward as it ought to be. When you use JavaScript to look up the colour setting in the stylesheet the format of the value that is returned depends on the browser you are using. For a cross browser solution you need to test for more than one alternative.

Testing Colours

Comments

No comments yet. Leave a Comment

Leave a Comment

Line and paragraph breaks are automatic. Some HTML allowed: <a href="" title="">, <b>, <i>, <strike>

Explore JavaScript
About.com Special Features

Stay connected and entertained with reviews on tips on the latest HDTVs, cellphones and more. More >

Easy ways to connect two computers for networking purposes. More >

  1. Home
  2. Computing & Technology
  3. JavaScript

©2009 About.com, a part of The New York Times Company.

All rights reserved.