Token replacements for custom JavaScript

You can use tokens within an external HTML object and a Run JavaScript action for generic replacement and manipulation within your custom Javascript. For example, use the %HTMLNAME% token within the Run JavaScript action to represent the HTML name of the object that has the action.

The following token replacements are supported within an external HTML object and a Run JavaScript action:

Token Replacement
%WIDTH% Width property of the object.
%HEIGHT% Height property of the object.
%HTMLNAME% HTML name property of the object.
%HTMLNAME_ Object name property based on the ID of the object. For example, if an image has ID 315, the token would be %HTMLNAME_315% and replaced with the HTML name of the image.

For details about adding and managing external HTML objects, see Working with HTML extension objects. For details about executing the Run JavaScript, see Selecting the action.

Knowledge Base | Training | Support
© Copyright eLearning Brothers 2021