Members
#
userAgent
client userAgent information
stringExamples
$Client.userAgent;
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.88 Safari/537.36
#
url
client url
stringExamples
$Client.url;
https://crm.zoho.com/crm/org77591XXXX/tab/Leads/create?layoutId=527627200000009XXXX
#
geoLocation
current client location information (the user is asked for permission to report location information)
objectExamples
$Client.geoLocation;
{
"latitude":8.894601,
"longitude":77.343917,
"altitude":null,
"accuracy":1255.3807245270482,
"altitudeAccuracy":null,
"heading":null,
"speed":null
}
#
selectedValue
Text selected by the user on the current page.
objectExamples
$Client.selectedValue;
{
"value":"Selected Text"
}
Functions
#
refresh(config)
Soft-refresh the client
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
config |
Object | configuration |
||
triggerOnLoad |
Boolean |
<optional> |
false | to trigger onLoad event of that page |
Examples
$Client.refresh();
$Client.refresh({triggerOnLoad: true});
#
openURL(url)
opens a new browser tab/window
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
url |
String |
<optional> |
url of the page to be openend |
Example
$Client.openURL("https://www.zylker.com")
#
copyToClipboard(text)
Copies the text to the clipboard
Parameters:
Name | Type | Description |
---|---|---|
text |
string | Text to copy |
Example
$Client.copyToClipboard('1234567890');