# Loaded 이벤트

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

&#x20;  Forguncy.PageEvents.Loaded

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

페이지가 로드된 후 이벤트가 트리거됩니다.

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

문자열

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

다음 예제 코드에서는 bnd 메서드를 통해 페이지에 Loaded 이벤트를 추가하고 페이지가 로드될 때 경고 상자가 나타납니다.

```
// 현재 페이지 가져오기
var page = Forguncy.Page;
//페이지 Loaded 이벤트 바인딩
page.bind("loaded", function (arg1, arg2) {
//페이지 이름을 보여주는 팝업창이 나타납니다.
alert(arg2.pageName);
});
```

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

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

<figure><img src="https://content.gitbook.com/content/kr3K95OpVnkhRrSKF3Qh/blobs/4GIMIfjZ4oh8guKoHlUr/image.png" alt=""><figcaption></figcaption></figure>

2. 페이지를 실행하면 페이지가 로드될 때 페이지 1의 페이지 이름을 표시하는 경고 상자가 나타납니다.

<figure><img src="https://content.gitbook.com/content/kr3K95OpVnkhRrSKF3Qh/blobs/tYGFruym4NB6f7XcO8oY/image.png" 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/command/javascriptprogramming/javascript-api/class/pageevents/loaded.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.
