Copy button

I have a copy button at http://dot.kr/x-test/copy4.php

if you click copy1, your mouse is going to eat the value “1”, and ready to paste it.
if you click copy2, your mouse is going to eat the value “2”, and ready to paste it.

It works fine in IE, but doesn’t work in chrome or firefox.

How can I fix it for brower compatibility?
Is there any code which works in the major browsers?

Hi, it is a bit tricky to get cross browser support on this, maybe this will help you: https://davidwalsh.name/clipboard

1 Like

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.