setProp()

Sets the value of the specified element property.

Syntax

Copy

Parameters

NameTypeDescription
propNamestringName of the property that you want to set.
valuestringValue of the property that you want to set.

Returns

Promise<void>

Example

Copy
Did this help?
OSZAR »