입력 받은 text 값을 클립보드에 넣는 구문
function deliver(hawb){ //var text = "Example text to appear on clipboard"; el = document.createElement('textarea'); el.value = hawb; document.body.appendChild(el); el.select(); document.execCommand('copy'); document.body.removeChild(el); return false; }
[참고] https://www.30secondsofcode.org/blog/s/copy-text-to-clipboard-with-javascript