JavaScript

Detect Safari Browsers with Javascript

Safari can be reliably detected using the vendor attribute of the navigator object.

if (navigator.vendor == "Apple Computer, Inc.") {
    alert('This browser is probably Safari');
 }