For checking if the browser is safari or not you can use below javascript function.
function isSafari()
{
var is_safari = navigator.userAgent.toLowerCase().indexOf('safari/') > -1;
if(is_safari)
{
return true;
}
else
{
return false;
}
}
The above method will return true or false depending on the browser. i.e. if the browser is safari then the above method will return true and if it's not then the method will return false.
Hope this will help :)
Comments
Post a Comment
.