
Social Sharing Overlay- On Click Event, trouble
Hi, I would like a javascript function to run when a user clicks on the Social Sharing overlay button. Is this possible?
I have tried targeting it through DOM, Ex:
document.getElementByClassName('jw-dock-button')[0].onclick = closebutton;
And Also tried the JW Player Sharing API EX:
sharingPlugin.on('open', function(event)) {
closebutton();
}
Have gotten no luck with these. Any suggestion on what is the best way to do this?