# logOut 메서드

### 매서드&#x20;

Forguncy.logOut(navigateToHomePage)

### 설명&#x20;

이 메서드를 사용하여 현재 사용자를 로그아웃 합니다.

### 매개변수&#x20;

<table><thead><tr><th width="259">매개변수 </th><th width="95">형식 </th><th width="72">필수여부</th><th>설명 </th></tr></thead><tbody><tr><td>navigateTOHomePage</td><td>boolean</td><td>No</td><td>로그아웃한 후 홈 페이지로 돌아갈지 여부입니다. 값이 비어 있거나 false이면 브라우저가 즉시 새로 고쳐집니다.</td></tr></tbody></table>

### 반환값&#x20;

없음&#x20;

### 예제&#x20;

다음 예제 코드에서는 logOut 메서드를 통해 현재 사용자를 로그아웃합니다

```
Forguncy.logOut(); 
```

### 사용예제&#x20;

1. 페이지에서 셀 범위를 선택하고 셀 유형을 버튼 설정하고 명령을 \[JavaScript 명령]으로 편집하고 JavaScript 코드를 입력합니다.

<figure><img src="https://1191936652-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FMDaEsmK9OwD7QYBNk9Sn%2Fuploads%2FBjXs6E45eT5bLiVAxgpd%2Fimage.png?alt=media&#x26;token=ada5e5ff-7655-4706-b47c-25b5925842f8" alt=""><figcaption></figcaption></figure>

2. 편집이 완료되면 \[확인]을 클릭하여 대화 상자를 닫습니다.\
   페이지를 실행하고 로그인한 후 로그아웃 버튼을 클릭하면 현재 로그인한 사용자가 로그아웃되고 페이지가 새로 고쳐집니다.

<figure><img src="https://1191936652-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FMDaEsmK9OwD7QYBNk9Sn%2Fuploads%2FSPmQtfvKsYOl1WOvJD3N%2Fimage.png?alt=media&#x26;token=2eea07e9-11bc-4667-b365-bbac086888f9" 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/forguncy-v9/command/javascriptprogramming/javascript-api/forguncymethod/logout.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.
