HTMLDivElement.SetAttribute

Syntax:

SetAttribute(<Name>, <Value>)

Parameters:

<Name> (required)

An attribute name.

<Value> (required)

Type: String.
An attribute value.

Description:

Sets the value of an attribute with a given name.
If there is no attribute with this name, then it will be created.

Availability:

Thin client, server, thick client, external connection, Mobile application (client), Mobile application (server).

Note:

If the attribute name contains characters incompatible with XML standard of this document, or the node is read-only, an exception is triggered.

    

1C:Enterprise Developer's Community