Search.../

target

Sets or gets the target of the rich text's link

Description

The link's target determines where it opens. The target can be set so the link opens in the current page or in a new page.

Supported values are:

  • "_blank": The link opens in a new tab or window.
  • "_self": The link opens in the tab or window.

Type:

stringRead & Write

Was this helpful?

Get the target of the rich text's link

Copy Code
1let myLinkTarget = $w("#myRichText").linkLabel; // "_blank"
Set the target of the rich text's link

Copy Code
1$w("#myRichText").target = “_blank”