Found some really useful code samples at .  They make liberal use of (easy way to detect browser capabilties)

Coding for a particular feature boils down to:

in HTML head

<script src='modernizr.min.js'></script>

and then wherever you want:

if (Modernizr.feature) { supported }

Very easy to code and use.

You need to generate Modernizr with the features you care about.  (That’s a little odd – why not just do everything?)

Have detection page coded at