i think onclick event wouldn't be efficient to reach what you are looking for maybe instead you should use onplay/onpause. if you insisted on using onclick even you can attach it to the parent element div which has btm class element