Copy to Clipboard Button

  • 31 March 2020
  • 4 replies
  • 93 views

Hi there.

I have a CTA composed of an image and a text above (discount code).
I would need this image to be clickable, copying the discount code to the clipboard and then triggering a little “Your discount code has been copyed to clipboard” message.

Is there any Js expert around here to provide a code/craft this little snippet so it works on my unbounce pages?

Much love.


4 replies

Userlevel 7
Badge +1

Hi @Tanguy! I’m going to move this post into the #job-board category to put a few more eyes on this request 🙂

-Jess

Thank you Jess, thats nice, as usual 🙂

Hello,
Greetings

I’d Glad to assist you.
PM Sent, Please Check.

Very Best Regards
Carter W

Badge +1

Hi @Tanguy

The instructions on this page are really simple and straighforward even if you know basic HTML/JS.
https://www.w3schools.com/howto/howto_js_copy_clipboard.asp

Hope this helps!
Malik

Reply