Browser Detection

If you've been doing Web development for any significant period of time, you are already aware that there is a significant difference between browsers and the way that they implement the more complex features of HTML and scripting languages such as ECMAScript (formerly known as JavaScript). Many a long night has been spent by Web programmers trying to make sure that their sites will function properly on all browsers.

There are two schools of thought when it comes to this. The first is to create a page that is written in such a way that it won't cause problems in any browser. That's what we've been doing with our simple layouts. This also known as playing to the lowest common denominator.

Finding the lowest common denominator ...

Get XML and Java™ from scratch now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.