Categories:

Determining browser type using object detection

Last updated: January 21st, 15'

In a perfect world, all the major browsers would co-exist happily together, supporting the same set of objects and features. But then again, in that world, I'd be on an island enjoying the sun. Before we reach that place, this tutorial looks at how to detect support for a particular JavaScript property or method before attempting to invoke it. It serves as an alternate, in many cases, superior way to strict browser detection for creating cross browser friendly scripts.