<script type=”text/javascript”>
//——————————– Check the browser version
jQuery(document).ready(function(){
var is_firefox = navigator.userAgent.indexOf(‘Firefox’) > -1;
var is_chrome = navigator.userAgent.indexOf(‘Chrome’) > -1;
var is_explorer = navigator.userAgent.indexOf(‘MSIE’) > -1;
var is_safari = navigator.userAgent.indexOf(“Safari”) > -1;
if(is_firefox){
getFirefoxVersion();
}
if(is_chrome){
getChromeVersion();
}
if(is_explorer){
getIEVersion();
}
if(is_safari){
getSafariVersion();
}
});
function getFirefoxVersion(){
if (/Firefox[\/\s](\d+\.\d+)/.test(navigator.userAgent)){ //test for Firefox/x.x or Firefox x.x (ignoring remaining digits);
var ffversion=new Number(RegExp.$1) // capture x.x portion and store as a number
//alert(ffversion);
if (ffversion<20){
var $link = ‘<a href=”http://www.mozilla.com” target=”_blank”>http://www.mozilla.com</a>’;
message_popup(“It appears that you are using an outdated version of your browser. We suggest that you update to the latest version for better experience. Please click the link mentioned below to upgarde:<br/> “+$link);
}
}
}
function getSafariVersion(){
var userAgent = navigator.userAgent.toLowerCase();
jQuery.browser.chrome = /chrome/.test(navigator.userAgent.toLowerCase());
// Is this a version of Chrome?
if(jQuery.browser.chrome){
userAgent = userAgent.substring(userAgent.indexOf(‘chrome/’) +7);
userAgent = userAgent.substring(0,userAgent.indexOf(‘.’));
// If it is chrome then jQuery thinks it’s safari so we have to tell it it isn’t
if (userAgent<26){
var $link = ‘<a href=”https://www.google.com/chrome/”>https://www.google.com/chrome/</a>’;
message_popup(“It appears that you are using an outdated version of your browser. We suggest that you update to the latest version for better experience. Please click the link mentioned below to upgarde:<br/> “+$link);
}
jQuery.browser.safari = false;
}
// Is this a version of Safari?
if(jQuery.browser.safari){
userAgent = userAgent.substring(userAgent.indexOf(‘version/’) +8);
userAgent = userAgent.substring(0,userAgent.indexOf(‘.’));
if (userAgent<6){
var $link = ‘<a href=”http://www.apple.com/safari/”>http://www.apple.com/safari/</a>’;
message_popup(“It appears that you are using an outdated version of your browser. We suggest that you update to the latest version for better experience. Please click the link mentioned below to upgarde:<br/> “+$link);
}
}
}
function getChromeVersion(){
var userAgent = navigator.userAgent.toLowerCase();
jQuery.browser.chrome = /chrome/.test(navigator.userAgent.toLowerCase());
if(jQuery.browser.chrome){
userAgent = userAgent.substring(userAgent.indexOf(‘chrome/’) +7);
userAgent = userAgent.substring(0,userAgent.indexOf(‘.’));
//alert(userAgent);
if (userAgent<26){
var $link = ‘<a href=”https://www.google.com/chrome/” target=”_blank”>https://www.google.com/chrome/</a>’;
message_popup(“It appears that you are using an outdated version of your browser. We suggest that you update to the latest version for better experience. Please click the link mentioned below to upgarde:<br/> “+$link);
}
}
}
function getIEVersion(){ alert(‘getIEVersion’);
var rv = parseFloat(navigator.appVersion.split(“MSIE”)[1]);
alert(rv);
if (rv<10){
var $link = ‘<a href=”http://windows.microsoft.com/ie” target=”_blank”>http://windows.microsoft.com/ie</a>’;
message_popup(“It appears that you are using an outdated version of your browser. We suggest that you update to the latest version for better experience. Please click the link mentioned below to upgarde:<br/> “+$link);
}
}
</script>
Download here : browser-version