---
updatedAt: 2025-01-08T23:23:43.000Z
agentTools:
  projectIndex: https://dev.frontapp.com/llms.txt
---

# openUrlInPopup

Requests Front to open a URL in a popup

```typescript Type
function openUrlInPopup(url: string, options: object, cancelToken?: CancelToken): Promise<void>;
```

## Parameters

<Table align={["left","left","left"]}>
  <thead>
    <tr>
      <th style={{ textAlign: "left" }}>
        Parameter
      </th>

      <th style={{ textAlign: "left" }}>
        Type
      </th>

      <th style={{ textAlign: "left" }}>
        Description
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td style={{ textAlign: "left" }}>
        `url`
      </td>

      <td style={{ textAlign: "left" }}>
        String
      </td>

      <td style={{ textAlign: "left" }}>
        URL to open.
      </td>
    </tr>

    <tr>
      <td style={{ textAlign: "left" }}>
        `options`
      </td>

      <td style={{ textAlign: "left" }}>
        Object
      </td>

      <td style={{ textAlign: "left" }}>
        Options for the popup window.
      </td>
    </tr>

    <tr>
      <td style={{ textAlign: "left" }}>
        `options.height`
      </td>

      <td style={{ textAlign: "left" }}>
        Integer
      </td>

      <td style={{ textAlign: "left" }}>
        Height of the window.
      </td>
    </tr>

    <tr>
      <td style={{ textAlign: "left" }}>
        `options.width`
      </td>

      <td style={{ textAlign: "left" }}>
        Integer
      </td>

      <td style={{ textAlign: "left" }}>
        Width of the window.
      </td>
    </tr>

    <tr>
      <td style={{ textAlign: "left" }}>
        `cancelToken`
      </td>

      <td style={{ textAlign: "left" }}>
        [Cancel token](https://dev.frontapp.com/reference/plugin-sdk-cancel-token)
      </td>

      <td style={{ textAlign: "left" }}>
        Token to cancel the request.
      </td>
    </tr>
  </tbody>
</Table>

## Return value

The function returns a Promise that resolves when the request has been received by Front.