Notice
Recent Posts
Recent Comments
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | ||||
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 | 31 |
Tags
- slice
- map
- ios
- animation
- 클로저
- Flex
- 이벤트 위임
- This
- input
- scroll
- dom
- 스크롤
- IntersectionObserver
- Push
- 문자열
- video
- ajax
- 객체
- event
- 애니메이션
- Promise
- 배열
- 모듈
- array
- 이벤트
- object
- 이벤트 루프
- 비동기
- ES6
- json
Archives
- Today
- Total
FEDev Story
input readonly focus 제거 본문
input[type=text]가 아래와 같이 읽기전용(readonly)으로 설정이 되어 있더라도 focus가 들어가 커서가 깜박거리는 현상이 있다.
<input type="text" id="contThema" readonly="readonly" placeholder="입력해주세요.">
focus를 제거하고 싶다면 아래와 같이 focus이벤트가 발생하면 blur()함수를 호출한다.
<input type="text" id="contThema" onfocus="this.blur()" readonly="readonly" placeholder="입력해주세요.">
'Web.Dev' 카테고리의 다른 글
페이지내 hash 이동하기 (0) | 2020.03.25 |
---|---|
Android / IOS 데스크탑에서 모바일기기 디버깅하기 (0) | 2020.03.17 |
javascript:void(0)과 #중에 어떤것을 사용할까 (0) | 2019.12.05 |
[Html] img 태그 속성 onError (0) | 2019.07.05 |
[스크랩] 접근성고려한 체크박스 및 라디오버튼 (0) | 2019.06.27 |
Comments