You are here: Reference > JavaScript > client-side > browser > methods > getAttribute (userProfile)

getAttribute method (userProfile)

Browser support:
Returns the value of the specified attribute from the current userProfile object.
The entire userProfile object, and therefore the getAttribute method as well, are deprecated and the support for them has been removed in Internet Explorer 9.


object.getAttribute (vCardName);
You can find the related objects in the Supported by objects section below.


Required. String that specifies the vCard name whose value you want to get.
For a complete list of vCard names, see the appendix.

Return value:

If the attribute does not have read privilege, it returns null, else it returns the value of the specified attribute as a string.

Supported by objects:

Related pages:

External links:

User Contributed Comments

Post Content

Post Content