https://etoland.co.kr/link.php?n=7444384
복사
<script type="text/javascript">
$('body').on('click', '#mw_basic .document_address_copy', function(){
var document_address_input = $('#document_address_hidden');
// 먼저 해당 input의 type을 text로 만들어야 함
document_address_input.prop('type', 'text');
document_address_input.select();
var copy = document.execCommand('copy');
document_address_input.prop('type', 'hidden');
if(copy){
alert('클립보드에 복사되었습니다');
}
});
</script>
<iframe src="https://www.youtube.com/embed/_f9EKuu-1Aw" title="YouTube video player" width="640px" height="360px" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen="">
</iframe>