![](https://secure.gravatar.com/avatar/c71cb2c766bdfa1c06ae91d1a9e4dfe9?rating=PG&size=50&default=https%3A%2F%2Fcdn.desk.com%2Fassets%2Funknown_user_50-8ad5644bbe6b1bd7454f2ea465f782bd.png)
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?