:: Home >>

getProperty

Returns property value.

Syntax

var value  = obj.getProperty(name);

Parameters

name (string) - property name

Returns

property value

Example

obj.defineProperty("color", "black");
alert(obj.getProperty("color")); // get value of the 'color' property
alert(obj.getColor()); // does the same thing

See also

defineProperty, setProperty methods

Comments

No comments yet.
Comments will appear on this page and in the main forum.

Documentation:

Recent changes:

2.5.0 - 2.5.2
2.5.2
2.5, 2.5.1
2.5.1
2.5
Release History
2.5
2.0.2
textToValue
textToData