--- layout: api title: "v1.6.4 JavaScript Library: L.Browser" categories: api version: v1.6.4 permalink: /api/v1.6.4/l-browser ---

## Browser

A namespace with properties for browser/feature detection used by Leaflet internally.

    if (L.Browser.ie6) {
    	alert('Upgrade your browser, dude!');
    }

property | type | description
--- | --- | ---
`ie` | `Boolean` | `true` for all Internet Explorer versions.
`ie6` | `Boolean` | `true` for Internet Explorer 6.
`ie7` | `Boolean` | `true` for Internet Explorer 7.
`webkit` | `Boolean` | `true` for webkit-based browsers like Chrome and Safari (including mobile versions).
`webkit3d` | `Boolean` | `true` for webkit-based browsers that support CSS 3D transformations.
`android` | `Boolean` | `true` for Android mobile browser.
`android23` | `Boolean` | `true` for old Android stock browsers (2 and 3).
`mobile` | `Boolean` | `true` for modern mobile browsers (including iOS Safari and different Android browsers).
`mobileWebkit` | `Boolean` | `true` for mobile webkit-based browsers.
`mobileOpera` | `Boolean` | `true` for mobile Opera.
`touch` | `Boolean` | `true` for all browsers on touch devices.
`msTouch` | `Boolean` | `true` for browsers with Microsoft touch model (e.g. IE10).
`retina` | `Boolean` | `true` for devices with Retina screens.