본문 바로가기

JavaScript

모달창에서 execCommand('copy') 실행 안 될 때

var text = document.getElementById('input-copy');
text.select();
text.focus();

document.execCommand('copy');

 

반응형