i don't want to use the double click function , instead i just want to run the below buttonOnClick() when a user click two times not single time , Help me iam new to coding
<button onclick="buttonOnClick();" onmouseover="mouseOver();" onmouseout="mouseOut();">Subscribe <i id="ytb" class="fa fa-youtube-square ytb"></i></button>
<br>
</div>
function buttonOnClick()
{
window.open('https://www.youtube.com/channel/UCXE6pw29K2lHS_2fB8LeU1Q?sub_confirmation=1','_blank');
setTimeout(aTagChange, 12000);
}