Chapter 12: Conditional JavaScript

design, paid careful attention to your content and created a true masterpiece, you still need to worry about precise interaction methods. What works for your desktop users may not work at all for your mobile users. By that same token, what works on a tablet may not work on a phone. This is where adding some conditional JavaScript can make all the difference.

Download Code

Code samples for this chapter include multiple projects that contain HTML, CSS, images, and JavaScript to demonstrate using conditional JavaScript. Note that for the examples to work they must be running on a webserver and not double-clicked to open in a browser.