mck89 mck89 - 1 year ago 196
CSS Question

Check browser CSS property support with JavaScript?

Is it possible in JavaScript to know if a CSS property is supported by the client browser? I'm talking about the rotation properties of CSS3. I want to execute some functions only if the browser supports them.

Answer Source

I believe you can do it this way:

if ('WebkitTransform' in 
 || 'MozTransform' in 
 || 'OTransform' in 
 || 'transform' in 
    alert('I can Rotate!');
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download