Get MS IE version - Node.js Environment

Node.js examples for Environment:Browser

Description

Get MS IE version

Demo Code


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;
  }

}

Related Tutorials