Chapter 3
Introducing JavaScript for Building Mobile Web Pages
In This Chapter
Using JavaScript with mobile browsers
Integrating HTML with JavaScript
Using the head section to add JavaScript code
Creating automatically launched JavaScript files
Giving the user dynamic controls of page content
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 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access