Opening links in new tab by clicking button in the repater

Ok Thanks for the response.

So can you tell me how can I achieve opening the specific link from the dataset on new tab.

I changed the code to simple one but also not working
same problem happening that button starts working on second click



$w.onReady(function () {
 $w("#accountOpeningListRepeater").onItemReady( ($item, itemData, index) => {
  $item('#sharewhatsapp').onClick((event) => {
    $w('#sharewhatsapp').link = "http://api.whatsapp.com/send?text="+itemData._id+" \n"+itemData.title+"&type=custom_url&app_absent=0";
    $w('#sharewhatsapp').target = "_blank";
  });
 });
});