JS - Gettings the parent html name of the object which I assigned an action to

dcarlier
dcarlier Community Member Posts: 1
Hi,



First of all, thanks for taking the time to read this post.



I'm trying to create an animation option for lectora objects, first step is to make a list of the objects that i want to animate. My idea was to assign an action to an image in lectora.



That action is running a:

Show->GoTo->Webpage->javascript:getImageName(parameter)



I want to send along a parameter that contains the name of the image it is assigned upon.

Example hierarchy:

- Image4

= Action1



So Action1 will run something like getImageName(what is the parent? it is Image4).



Does anyone know how to retrieve the html name of its' parent in an action?



Thanks in advance!



David

Comments