Posts Tagged ‘ Detect Safari browser ’

Screen width & Detect Safari browser in Javascript


////// get screen width ////////
var scr = screen.width;
if(scr>1024){
//test
}

////// detect user safari browser ////////
var browser = navigator.userAgent;
if (browser.toLowerCase().indexOf(‘safari’) > 0){
//detect browser
}