Chapter 3

Introducing JavaScript for Building Mobile Web Pages

In This Chapter

arrow Using JavaScript with mobile browsers

arrow Integrating HTML with JavaScript

arrow Using the head section to add JavaScript code

arrow Creating automatically launched JavaScript files

arrow Giving the user dynamic controls of page content

arrow Dynamically changing graphics with JavaScript and the Document Object Model

The good thing about JavaScript is that a little goes a long way. You can add a little script in your HTML code and use it and reuse it again and again. JavaScript helps you make your website look just right for your big computer with a 27-inch screen, your laptop, your tablet computer, and your smartphone — all with the same HTML page. Just let JavaScript do all the work figuring out the type and size of the device you're using.

You can write JavaScript using any application you write HTML with. That includes web development ...

Get HTML, CSS, and JavaScript® Mobile Development For Dummies® 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.