---
title: VisualViewport.pageLeft
slug: Web/API/VisualViewport/pageLeft
tags:
  - API
  - Property
  - Reference
  - Visual Viewport API
  - VisualViewport
  - pageLeft
  - viewport
browser-compat: api.VisualViewport.pageLeft
---
{{APIRef("Visual Viewport")}}

The **`pageLeft`** read-only property of the
{{domxref("VisualViewport")}} interface returns the x coordinate of the left edge of the
visual viewport relative to the initial containing block origin, in CSS pixels.

## Syntax

```js
var pageLeft = VisualViewport.pageLeft
```

### Value

A double.

## Specifications

{{Specifications}}

## Browser compatibility

{{Compat}}
