Plugin JavaScript Function instanceId()

function module_class_name.instanceId()

Summary

Returns the Instance Id of an Instance of your Plugin on the current page.

Where You Can Use It

Anywhere in your JavaScript code in the front-end. From Zenario 7.0 onwards.

Description

Note that this will only return one Instance Id; if you have more than one Instance on a page then it's not defined which one will be returned.

Return Value

An Instance Id, or false if there are no instances of your Plugin currently one the page.