You need to enable JavaScript to run this app.
Yuni-Q
검색
close event
yuni-q
·
2020년 6월 29일
window
.
addEventListener
(
'beforeunload'
,
(
)
=>
document
.
activeElement
.
blur
(
)
)
;
창을 닫을 때 현재 활성화 되어 있는 포커스 제거합니다.
alert 사용 시 chrom에서는 정상 작동하지 않습니다.
Buy me a coffee
Written by
@yuni-q
yuni-q's graffiti.
GitHub
이전 글
← ie11
다음 글
blur 처리 →