-
// 제이쿼리 $('input[type="file"]').attr('title', window.URL ? ' ' : ''); // 자바스크립트 document.querySelector('input[type="file"]').setAttribute('title', window.URL ? ' ' : '');
URL이 있는 지 확인 후 타이틀을 빈 값으로 대체하는 방법
stackoverflow에서는 window.webkitURL을 사용하는데 experimental/deprecated API이기 때문에 window.URL로 변경!
출처: stackoverflow
'Archive' 카테고리의 다른 글
컨텐츠 스크롤바 없애는 CSS (0) 2022.03.17 댓글