function detectSafari45()
{
var safariRegEx = /Mozilla\/5\.0 \([^\)]*\) AppleWebKit\/\d+\.\d+(\.\d+)? \(KHTML, like Gecko\) Version\/[45]\.\d+\.\d+( Mobile\/\w*)? Safari\/\d+\.\d+(\.\d+)?/i
var match = safariRegEx.exec(navigator.userAgent);
if (match !== null && match.length > 0)
{
return true;
}
return false;
}
No comments:
Post a Comment