---
sidebar_label: Page.windowId
---

# Page.windowId() method

Returns the page's window id.

### Signature

```typescript
class Page {
  abstract windowId(): Promise<WindowId>;
}
```

**Returns:**

Promise&lt;[WindowId](./puppeteer.windowid.md)&gt;
