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?