CKJ 47F247G-ZRK

 

Copy HTML Source

 

여성 베이비립 스쿱 컷아웃 탑

 

Copy HTML Source function copyHtmlSource() { // 선택된 div 요소 가져오기 var sourceDiv = document.querySelector('.pdp_ck_detail_calvinklein'); // div 요소의 HTML 소스 가져오기 var htmlSource = sourceDiv.outerHTML; // 임시 textarea 요소 생성 var tempTextArea = document.createElement('textarea'); tempTextArea.value = htmlSource; document.body.appendChild(tempTextArea); // textarea 내용 선택 및 복사 tempTextArea.select(); document.execCommand('copy'); // 임시 textarea 요소 제거 document.body.removeChild(tempTextArea); // 알림 메시지 alert('HTML source copied to clipboard!'); } document.getElementById('select_channel').addEventListener('change', function() { var urlParams = new URLSearchParams(window.location.search); urlParams.set('channel', this.value); window.location.search = urlParams.toString(); });