Chapter 6: Device APIs

The Geolocation API is in IE9 and all other major browsers. Device orientation is present in mobile WebKit browsers, Chrome, and Firefox mobile. Do bear in mind, however, that device APIs depend on certain functions being available on the phone; just because the Device Orientation API is implemented in a browser, it doesn’t necessarily follow that the device has an accelerometer.

Opera has implemented the Full Screen API, as have desktop WebKit browsers, Chrome for Android, and Firefox. The WebKit and Firefox implementations have some subtle differences, but rather than trying to explain those here, I’ll refer you to the MDN article “Using Fullscreen Mode” at https://developer.mozilla.org/docs/DOM/Using_fullscreen_mode/ ...

Get The Modern Web now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.