Gets the document target at the current text input position or the document target with the specified id.

<void> DocumentTargetCollection.getItem(<RequestDocumentTargetCallback> callback, [<ErrorCallback> errorCallback], [<number> nameOrId])

Parameters

Parameter Description
callback The callback function that receives the requested value.
errorCallback Optional. Is called when the operation failed with an error.
nameOrId Optional. Specifies either the document target's identifier set with the ID property or the document target's target name set with the TargetName property. The method returns null if a target with the specified identifier or name does not exist.