
팝업 윈도우로 노출할 페이지가 Origin이 같다면, onbeforeunload로 이벤트 처리하고 const popupWindow = window.open('http://www.google.com') popupWindow.onbeforeunload = function() { // TODO: Your code } Origin이 다르면, onbeforeunload로 이벤트가 발생하지 않기 때문에 setInterval을 사용하여 팝업 윈도우가 닫혔는지 확인한다. const popupWindow = window.open('http://www.google.com'); const timer = setInterval(function() { if (popupWindow.closed) { clearInterval(tim..
TIL/JavaScript
2023. 2. 9. 14:17
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
링크
TAG
- HLS
- onbeforeunload
- jdk6
- fluentd
- springboot
- JPA
- Programming
- elasticsearch
- jdk7
- DATABASE
- popupWindow
- DB
- HTTP Live Streaming
- HDFS
- Java
- ffmpeg
- development
- programmer
- Spring
- JDK21
- springframework
- springjpa
- Rolling-Restart
- C/C++
- CentOS
- oid
- Virtual Thread
- AVIOContext
- libavformat
- JAXB
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
글 보관함