View Single Post
  #1 (permalink)  
Old 10-26-2003, 01:53 PM
mem-tek's Avatar
mem-tek mem-tek is offline
Registered User
 
Join Date: Oct 2003
Location: North Georgia
Posts: 9
Thumbs up CSS1 Support Chart website--can be used to test browser support/version

Hello everyone,

Following is a link to a CSS1 support charts for various versions of many browsers. You can see what features are supported by each browser. You could also create simple javascripts to test for browser compatibility based on the features supported by a given browser. Link follows:

http://devedge.netscape.com/library/...astergrid.html

An example javascript showing how to check for IE5.5+ or Netscape 6x+, based on CSS1 support, follows:

<SCRIPT LANGUAGE="JavaScript">
<!--
if (document.getElementById)
//the surfer is using IE5+ or NS6+
version="compatible";
else
version="upgrade";

if (version=="upgrade")
alert("This site is designed for IE 5.5+ or Netscape 6x+. Please upgrade or use one of these two browsers to properly view this site.");
//-->
</SCRIPT>

In the above javascript example, the getElementById feature is only supported by IE5.5+ and by NS6+ or similar browsers. This is a handy, universal way, to check for browser compatibility, regardless of the actual browser being used by the client.

Get the idea? No point in creating custom code to check each and every vendor/version of web browsers. Just check for supported features instead!

Hope this is helpful...

--Michael
Reply With Quote