Check browser Type in javascript

 1-check if your browser is internet explorer

function isIE() {

var ie = (navigator.userAgent.indexOf("MSIE") != -1);

return ie;

}



2- 1-check if your browser is FireFox



function isFireFox() {

var fireFox = (navigator.userAgent.indexOf("Mozilla") != -1 ||

navigator.userAgent.indexOf("FireFox") != -1);

return fireFox;

}

Comments

Popular posts from this blog

ScrollView in xamarin forms

Checkbox and RadioButon in xamarin forms

Navigation in Xamarin.Forms