---
title: PictureInPictureWindow.width
slug: Web/API/PictureInPictureWindow/width
tags:
  - API
  - Interface
  - Media
  - Picture-in-Picture
  - Picture-in-Picture API
  - Video
  - pip
browser-compat: api.PictureInPictureWindow.width
---
{{APIRef}}

The read-only {{domxref("PictureInPictureWindow")}} property
**`width`** returns the width of the floating video window in
pixels.

## Syntax

```js
let width = pictureInPictureWindow.width;
```

### Value

An integer value indicating the width of the floating video window in pixels. This
property is read-only, and has no default value.

## Specifications

{{Specifications}}

## Browser compatibility

{{Compat}}

## See also

- [Picture-in-Picture API](/en-US/docs/Web/API/Picture-in-Picture_API)
- {{DOMxRef("PictureInPictureWindow.height")}}
