---
title: Window.pageXOffset
slug: Web/API/Window/pageXOffset
tags:
  - API
  - Alias
  - CSSOM View
  - CSSOM View API
  - NeedsMobileBrowserCompatibility
  - Property
  - Window
  - scrolling
browser-compat: api.Window.pageXOffset
---
{{ APIRef("CSSOM View") }}

The read-only {{domxref("Window")}} property **`pageXOffset`** is an alias for [`scrollX`](/en-US/docs/Web/API/Window/scrollX).

## Specifications

{{Specifications}}

## Browser compatibility

{{Compat}}

## See also

- {{domxref("Window.pageYOffset", "pageYOffset")}}
