Node.js examples for Environment:Browser
Get MS IE version
function msieversion(){ var ua = window.navigator.userAgent var msie = ua.indexOf ( "MSIE " ) if ( msie > 0){ return parseInt (ua.substring (msie+5, ua.indexOf (".", msie ))) }else{//from w w w .j ava 2s . c om return 0; } }