How can I check if the user’s current browser is Safari 5?
Update
We have a check on our site that displays a “Browser not supported” message if the user is using an older browser. Currently our error is showing up for the latest Safari and it shouldn’t be.
See:
jsBrowsersDetect
Or
Browser detect
But that is not a good practice, it is always best, however, to avoid browser specific code entirely where possible. The JQuery
$.supportproperty (if you want) is available for detection of support for particular features rather than relying on browser name and version.