:: Documentation >>

getProperty

Returns property value.

null

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

Documentation:

Recent changes:

2.6.4
2.6.3
2.6.2
2.6.1
2.6.1
2.6.0
2.5.0 - 2.5.6
2.5.6
2.5.0 - 2.5.5
2.5.5