17. Scripting Mobile Devices

The newest big opportunities and challenges in web development have all come from the same event: the growth in popularity of mobile devices. A significant percentage of web surfing (and more importantly, online purchasing) now happens on phones and tablets. It’s time to face mobile devices head on. In this chapter, you’ll learn how to handle device rotation and location, launch other applications from the browser, and target particular devices.

Changing Your Orientation

One of the biggest differences in coding for mobile devices versus desktop computers is that a device’s orientation can change—that is, ...

Get Visual QuickStart Guide: JavaScript, Ninth Edition 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.