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

Last updated: 9 February 2025

Did this help?