We are using Pega 7.3 with CRM framework. On a section, we have customer id, name, surame as lables and under each of those, buttons are added with 'Copy' caption. On click, a script (JS) is getting executed and the value of label above that button will be copied to clipboard of local system.
Issue is that the focus shifts to some unknown place of the screen and tabbing would show it in the left most tab of the explorer.
What change we need to make in script so that the focus remain on button that we clicked?