How to add a post-copy-to-clipboard Javascript hook #862
Unanswered
atensoftware
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Thank you for this awesome library.
I have a button like this:
<button data-clipboard-target="#my-div">Copy and Open Link</button>
I want the button to copy to clipboard, and then call my custom Javascript function that opens a link, all in one step.
If I add "onclick='MyFunction();' to the button, will it work in the right order? If that does not work, how can I set up a post-copy hook?
Beta Was this translation helpful? Give feedback.
All reactions