There are several different browsers and versions out there, thus you, the programmer, do not know what JavaScript capabilities the user has. Insuring that the scripts you write run in most users browser can be done in a few different ways. One way is to ask the user what browser they are using, via JavaScript, and to then program accourdingly. This tutorial shows you how.