In this chapter, we will cover the following recipes:
Responsive design
Sanitizing HTML
Using a browser's local storage
Using an application cache to work offline
Preventing an onSubmit event from reloading the page
Dynamically inserting rows in an HTML table
Using CORS headers
Using keyboard events
Enabling drag-and-drop
Enabling touch events
Creating a Chrome app
Structuring a game project
Using WebGL in your app
Authorizing OAuth2 to Google services
Talking with JavaScript
Using JavaScript libraries