How do I code a button that it will copy specific text to the clipboard?
For example:
DISCOUNTCODE
, customer will click on the button, and theDISCOUNTCODE
will be copied to the user clipboard so he/she can paste it on checkout.How do I code a button that it will copy specific text to the clipboard?
For example:
DISCOUNTCODE
, customer will click on the button, and theDISCOUNTCODE
will be copied to the user clipboard so he/she can paste it on checkout.