javascript 브라우저 x버튼 클릭시 동작.(브라두져 닫기 동작)
페이지 정보
작성자 미친새 작성일 20-02-21 11:45 조회 21,601 댓글 0본문
<!DOCTYPE html>
<html>
<body onbeforeunload=\"return myFunction()\">
<p>Close this window, press F5 or click on the link below to invoke the onbeforeunload event.</p>
<a href=\"http://www.w3schools.com\">Click here to go to w3schools.com</a>
<script>
function myFunction() {
return \"Write something clever here...\";
}
</script>
</body>
</html>
<html>
<body onbeforeunload=\"return myFunction()\">
<p>Close this window, press F5 or click on the link below to invoke the onbeforeunload event.</p>
<a href=\"http://www.w3schools.com\">Click here to go to w3schools.com</a>
<script>
function myFunction() {
return \"Write something clever here...\";
}
</script>
</body>
</html>
관련링크
댓글목록 0
등록된 댓글이 없습니다.