Detecting the Safari Browser

In Archive by Fredy Ore

Here is a useful Javascript article on detecting various browsers including the beta Safari browser. The website is also linked from WebReference.com.
if (navigator.userAgent.indexOf(‘Safari’) != -1) {
document.write(SafariDetected);
} else {
document.write(NoSafari);
}