Skip to main content
Version: v11.0.0

Public Functions

These are functions that allow access to information related to the plugin or interaction with the Assistive Resources.

Public FunctionDescription
configReturns the plugin configuration object.
versionReturns the plugin version as a string.
removeListenersFromIframeRemoves the listener from a specific iframe passed as a parameter.
addListenersToIframeAdds the listener to a specific iframe passed as a parameter.
removeListenersFromIframesRemoves listeners from all iframes present on the page.
addListenersToIframesAdds listeners to all iframes present on the page.
destroyRemoves the plugin from the page.
openWebsiteTranslatorOpens the Website Translator.
openAccessibilityFeaturesOpens Assistive Resources.
warning

The public functions related to iframes are used in the context of the Website Translator.

For more information, visit the Dynamic Iframes page.

Example of Using Public Functions

<body>
<script src="https://plugin.handtalk.me/web/latest/handtalk.min.js"></script>
<script>
var ht = new HT({
// Replace with your access token
token: "TOKEN"
});
// View configurations
ht.config();
// View plugin version
ht.version();
// Remove the plugin from the page
ht.destroy();
// Open Website Translator
ht.openWebsiteTranslator();
// Open Assistive Resources
ht.openAccessibilityFeatures();
</script>
</body>