• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 8. Working with Objects > Manipulating Object Properties

Manipulating Object Properties

All of these JavaScript objects have at least one property, and some of them have a couple of dozen or more. What you do with these properties depends on the object, but you generally use them for the following tasks:

  • Gathering information about an object's current settings. With the Text object, for example, you can use the value property to get whatever string is currently in the text box.

  • Changing an object's current settings. For example, you can use the Window object's status property to display a message in the browser's status bar.

  • Changing an object's appearance. With the Document object, for example, you can use the bgColor property to change the background color of the page.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint