1. Technology
Definition: The with statement allows you to leave the object name off of the front of all of the property and method references within a block of code. All of the references within the block will be assumed to be properties or methods of the object specified in the with statement. This will make all of the code shorter than it would be if you had to add the object name to all of the references. With is a reserved word and cannot be used for anything other than creating a with block.
with myobject {...}
Top Related Searches
  • method references
    1. About.com
    2. Technology
    3. JavaScript

    ©2014 About.com. All rights reserved.