Category Archives: Browsers

How to target Windows 10 Edge browser with javascript (with objectfit example usage)

Detects all versions of IE including the latest version of Windows 10 Edge.  It also detects for modernizr.  My example below uses Modernizr to replace the unsupported objectfit CSS property in IE.  It gets replaced with a background image. <script> // Execute this if IE is detected. function msieversion() { var ua = window.navigator.userAgent; var… Read More »