Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 209
  • Last Modified:

detect safari version 6.1 and above

Hi

How can i detect safari versions 6.1 and above with JS

Thanks
0
coolispaul
Asked:
coolispaul
1 Solution
 
leakim971PluritechnicianCommented:
var strVersion = navigator.userAgent.match(/\sVersion\/([^\s]*)/).pop();
var dVersion = strVersion.replace(/([^.]+).([^.]).?([^.])/,"$1.$2$3") * 1;
var test = dVersion > 6.1; // true or false

Open in new window

0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now