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

getAttribute method (userProfile)

Browser support:
9
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.

Syntax:

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

Parameters:

vCardName
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