getAttribute

This method retrieves the value of an attribute from the current element.

Syntax

function xweb.document.htmlElement.getAttribute(
attributeName : String
) : String

Parameters

attributeName   A string that specifies the attribute name to be retrieved. This parameter is required.

Returns

This method returns the value of the attribute as a string. If the attribute does not exist, null is returned.

See Also

Concepts

htmlElement
htmlElement Members
xweb

  Copyright © 2011 by Microsoft Corporation. All rights reserved.