Detectes whether the current browser is Edge. Returns the version number if it is or -1 if it's not.
Detectes whether the current browser is Internet Explorer. Returns the version number if it is or -1 if it's not.
Detectes whether the current browser is either Internet Explorer or Edge (versions 12 and above) and returns the version. Returns -1 if the current browser is not IE. Adapted from https://codepen.io/gapcode/pen/vEJNZN. Verified with https://msdn.microsoft.com/en-us/library/hh869301(v=vs.85).aspx.
Detects whether the current browser is Chrome