User.prototype.nameLink()

Get an anchor tag with the user’s name, pointing to the user’s home page.

Syntax

user.nameLink() string user.nameLink(className string) string user.nameLink(className string, targetBlank bool) string

Parameters

className string

A custom class name to be used for styling purposes.

targetBlank bool

By default, the link will open in a new tab. You may override this by setting this parameter to false.

Description

Get an anchor tag with the user’s name, pointing to the user’s home page.

Examples

Get the sandbox user’s name as link.

Provide a custom class name.

Open the link in the same tab.