Copy to clipboard via javascript

I was trying to find a custom javascript that copies to clipboard, as I would not prefer to install a plugin just for this action.
I manage to copy using the code provided here by @lantzgould but there is a problem: texts keep appearing at the bottom of the page as you can see here:

Is there a way to copy to clipboard without these texts appearing?


1 Like

Hey @sensei01, what browser and device type is this? I am unable to replicate the issue.

Microsoft edge in a windows

actually it happens on chrome too

I’m still unable to replicate. Do you have a link to a test page?

1 Like

I have this problem too… it disappear when i refresh the page but unable to know how to remove this display…


This topic was automatically closed after 70 days. New replies are no longer allowed.