Sets the name of a document target.
<void> DocumentTarget.setName(<string> name, [<EmptyRequestCallback> callback], [<ErrorCallback> errorCallback])| Parameter | Description |
|---|---|
| name | Relates a user-defined name to document target. |
| callback | Optional. Is called when the operation completed. |
| error |
Optional. Is called when the operation failed with an error. |
Learn more about the Javascript: Document