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

Chapter 6. Core Syntax > Object.watch()

Object.watch()

JavaScript 1.2+ Nav4+, NES3+ Syntax

							object.watch(prop,
							function)

Description

The watch() method of the Object object is used to watch for the event in which a property gets assigned a value. When the assignment is made, a user defined function is executed. The method itself takes the property to watch, prop, and the function to call, func, when the event occurs.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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