setAttribute

This method sets the value of the specified attribute.

Syntax

function xweb.document.htmlElement.setAttribute(
attributeName : String, 
value : String
) : boolean

Parameters

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

value   A string that contains the attribute value to be set.

Returns

Nothing.

See Also

Concepts

htmlElement
htmlElement Members
xweb

  Copyright © 2011 by Microsoft Corporation. All rights reserved.