Home arrow JavaScript arrow Adding and Deleting JavaScript Properties and Methods
JAVASCRIPT

Adding and Deleting JavaScript Properties and Methods


Did you know that after you have written the code for a JavaScript object, you could still add properties and methods to the object at run time? Did you know that the user can add properties and methods to a JavaScript object? In this three part series, I show you how to add JavaScript properties and methods at compile and at run time.

Author Info:
By: Chrysanthus Forcha
Rating: 5 stars5 stars5 stars5 stars5 stars / 1
September 25, 2009
TABLE OF CONTENTS:
  1. · Adding and Deleting JavaScript Properties and Methods
  2. · Adding without passing parameters
  3. · Explanation of the Script
  4. · Adding Properties and Methods to Object Type

print this article
SEARCH DEVARTICLES

TOOLS YOU CAN USE

advertisement
Adding and Deleting JavaScript Properties and Methods
(Page 1 of 4 )

Likewise, I also show you how to delete properties and methods. You should have basic knowledge in JavaScript in order to understand this article. In particular, you should also have basic knowledge in JavaScript objects.

We shall begin by seeing how to add properties and methods at compile time. In this part of the series, everything deals with adding at compile time.

Object Type and Object

In JavaScript, the class of an object is called the Object Type. The object type does not refer to any object. That is, it does not refer to any object instance or member of an object class. In JavaScript the word "object" refers to an instance of the object; that is, a member of the object type (object class).


blog comments powered by Disqus
JAVASCRIPT ARTICLES

- More Top jQuery Tutorials for Beginners
- More Top jQuery Plugins for Menus
- Top jQuery Tutorials for Beginners
- New UI Framework and SDK for JavaScript Rele...
- JavaScript OpenPGP Tool, Node.js 0.6.3 Avail...
- Yahoo Releases Cocktails Language and Develo...
- Customizing jQuery Slideshows: Dynamic Contr...
- Customizing jQuery Slideshows: the animate()...
- Customizing jQuery Slideshows: slideUp() and...
- Customizing jQuery Slideshows: hide() and sh...
- Web Workers: Performing Calculations in Para...
- More Top JavaScript Frameworks and Libraries
- More Dynamic jQuery Styling Techniques
- The Top JavaScript Libraries
- The Top JavaScript Frameworks

Dev Articles Forums 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Weekly Newsletter
 
Developer Updates  
Free Website Content 
Contact Us 
Site Map 
Privacy Policy 
Support 



© 2003-2012 by Developer Shed. All rights reserved. DS Cluster 11 - Follow our Sitemap
Popular Web Development Topics
All Web Development Tutorials