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?