Chapter 6

Working with Objects

IN THIS CHAPTER

check Understanding objects

check Messing with object properties

check Running object methods

check Giving the Windows object a whirl

check Interacting with your site visitors

The problem with object-oriented languages is they’ve got all this implicit environment that they carry around with them. You wanted a banana but what you got was a gorilla holding the banana and the entire jungle.

— JOE ARMSTRONG

JavaScript derives most of its power, flexibility, and utility from its extensive collection of methods for reading, changing, adding, and deleting web page doodads and bric-a-brac. It could be HTML elements, CSS properties, form controls, or internal programming resources such as strings and numbers. Whatever it is, JavaScript has an amazing and seemingly endless collection of powerful tools — called objects — that enable you to monitor and control almost every aspect of the web page. This chapter represents a major step forward in your JavaScript education as ...

Get Web Coding & Development All-in-One 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.