How to target Windows 10 Edge browser with javascript
问题 I know you should do feature detection where possible, but can you detect in Javascript if the browser is the Microsoft Edge browser? I maintain an old product and I want to display a warning that some features could be broken without having to invest a lot of time fixing the old code. 回答1: Try to detect features instead of a specific browser. It's more future-proof. Only rarely should you use browser detection. With that out of the way: one option is to use a library (there are many