Home » Javascript » Detecting Edge browser version (using Javascript or C#)

Detecting Edge browser version (using Javascript or C#)

Posted by: admin June 30, 2018 Leave a comment

Questions:

Edge user agent looks something like this:

Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.116 Safari/537.36 Edge/15.15063

(Notice Edge/15.15063 at the end)

Now when I look up actual browser version in Edge I see this info about app:

Microsoft Edge 40.15063.674.0

Microsoft EdgeHTML 15.15063

So you see, user agent actually responds with EdgeHTML version.

My qeustion is, how do I get Edge version? (not EdgeHTML version)

C# is even worse: His Request.Browser static class responds with
Browser: “Chrome”, Version: “52.0”, so this is out of the question.

Answers: