---
title: Screen.onorientationchange
slug: Web/API/Screen/onorientationchange
tags:
  - API
  - CSSOM View
  - Deprecated
  - Event Handler
  - Property
  - Screen Orientation
browser-compat: api.Screen.onorientationchange
---
{{APIRef("Screen Orientation API")}}{{Deprecated_Header}}

> **Warning:** This is a non-standard deprecated feature which was
> implemented only in Firefox under a different name. Use
> {{DOMxRef("ScreenOrientation.onchange")}} instead.

An event handler for the {{domxref("Window/orientationchange_event",
  "orientationchange")}} events sent to the screen object.

## Syntax

```js
screen.onorientationchange = funcRef;
```

Where `funcRef` is a reference to a function.

## Specifications

This feature is not part of any specification. It is no longer on track to becoming a standard.

Use {{domxref("ScreenOrientation.onchange")}} instead.

## Browser compatibility

{{Compat}}

## See also

- {{event("orientationchange")}}
- [Managing screen orientation](/en-US/docs/Web/API/CSS_Object_Model/Managing_screen_orientation)
