get details of device and browser in js code example Example: javascript get device window.navigator.userAgent