Search.../

name

Gets the name of an anchor.

Description

An anchor's name is used as a label for the anchor. The value of the name property appears in anchor menus.

An anchor's name is set in the Editor using the Anchor Settings panel.

Anchor Settings

Type:

stringRead Only

Related Content:

Was this helpful?

Get an anchor's name

Copy Code
1let anchorName = $w("#myAnchor").name; // "Contact Anchor"