# PopupClosed 이벤트

#### 이벤트 <a href="#popupclosed-shi-jian-shi-jian" id="popupclosed-shi-jian-shi-jian"></a>

&#x20;  Forguncy.PageEvents.PopupClosed

#### 설명 <a href="#popupclosed-shi-jian-miao-shu" id="popupclosed-shi-jian-miao-shu"></a>

이 이벤트는 현재 페이지의 팝업 페이지가 닫힐 때 트리거됩니다.

#### **반환값**  <a href="#popupclosed-shi-jian-fan-hui-zhi" id="popupclosed-shi-jian-fan-hui-zhi"></a>

문자열

#### 예제 <a href="#popupclosed-shi-jian-shi-li" id="popupclosed-shi-jian-shi-li"></a>

다음 예제 코드에서는 bnd 메서드를 통해 페이지에 PopupClosed 이벤트를 추가하고 현재 페이지의 팝업 페이지를 닫을 때 경고 상자가 나타납니다.

```
// 현재 페이지 가져오기
var page = Forguncy.Page;
//바인드 페이지 이벤트
page.bind("popupClosed", function () {
/// 경고 상자 팝업
alert("이동 가능한 타입");
});
```

#### 사용 예제&#x20;

1. 페이지 설정에서 JavaScript 파일을 업로드하고 JavaScript 코드를 입력합니다.

<figure><img src="https://1164392614-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzxNQdilex6YN3fZKZhGM%2Fuploads%2FYsQ6NpG7qbg67dDMlsVP%2Fimage.png?alt=media&#x26;token=54bee4f8-f59e-4280-9659-e3fce2c1529b" alt=""><figcaption></figcaption></figure>

2. 페이지를 실행하고 테이블에서 팝업버튼을 클릭하여 팝업페이지를 띄우고, 닫기 버튼을 클릭하여 팝업 페이지가 닫히면 경고 상자가 나타납니다.

<figure><img src="https://1164392614-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzxNQdilex6YN3fZKZhGM%2Fuploads%2FVmyyGjfRWqyqrjFuBU3s%2Fimage.png?alt=media&#x26;token=48f619da-ccb7-4637-9aa5-c172eca39a39" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://doc.forguncy.co.kr/v7/command/javascriptprogramming/javascript-api/class/pageevents/popupclosed.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
