Vandervals Vandervals - 1 year ago 151
Javascript Question

Detecting Microsoft's edge or spartan with javascript

Is the user agent for Edge or Spartan browsers known already? Can anyone tell me how to detect this browser and diferentiate it from IE in advance of its release?

Answer Source

A simple google search found me the answer you are looking for:,125732

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

Therefore you should match: "Edge\/\d+"

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download