Events Not Firing Sequentially

Hi,

I am executing this JS inside a function triggered by a button click (CopyToClipboard Button). However, I see these events are not fired sequentially and copy command does nothing.

$$("dataTable2").selectAll();
document.execCommand('copy');
$$("dataTable2").unselectAll();

Thanks

Comments

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!