O'Reilly logo

XML and Java™ from scratch by Nicholas Chase

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required