getProp()

Gets the value of the specified element property.

Syntax

Copy

Parameters

NameTypeDescription
propNamestringName of the property that you want to get.

Returns

Promise<string>

Value of the property.

Example

Copy

Last updated: 9 February 2025

Did this help?