javascrip link copy1 onclick 을 활성화 하기위한 환경(기본상식) 샘플코드기능 : 클립보드 텍스트 복사 Copy text function myFunction() { /* Get the text field */ var copyText = document.getElementById("myInput"); /* Select the text field */ copyText.select(); /* Copy the text inside the text field */ document.execCommand("copy"); /* Alert the copied text */ alert("Copied the text: " + copyText.value); } 이거로 오늘 삽질만 30분 했던거같다.. button을 클릭했을때 이벤트를 발생하기 위한 함수가 정의되어 있는데, onclick을 .. 2020. 6. 24. 이전 1 다음