Javascript Why Does The Following Function Doesn T Detect Browser

Javascript Why Does The Following Function Doesn T Detect Browser