Return to Snippet

Revision: 34252
at October 19, 2010 23:20 by neal_grosskopf


Initial Code
var el = document.createElement("div");
if(typeof el.style.opacity == "string")
{
//Your browser supports the CSS Opacity property";
} else if (typeof el.style.filter == "string"){
//Your browser doesn't support the CSS Opacity property but does support IE filters";
} else {
//"Your browser doesn't support the CSS Opacity property";
}

Initial URL
http://www.nealgrosskopf.com/tech/thread.php?pid=74

Initial Description
Learn how to test for CSS property support in specific browsers using this simple Javascript technique.

Initial Title
Determine CSS Property Support Using Javascript Feature Testin

Initial Tags
css, javascript

Initial Language
JavaScript