Sets the name of a document target.

<void> DocumentTarget.setName(<string> name, [<EmptyRequestCallback> callback], [<ErrorCallback> errorCallback])

Parameters

Parameter Description
name Relates a user-defined name to document target.
callback Optional. Is called when the operation completed.
errorCallback Optional. Is called when the operation failed with an error.

Further Reading

Learn more about the Javascript: DocumentTarget.setName Method in the Text Control Blog: