Skip to content

Commit

Permalink
2023/04/07 時点の英語版に同期
Browse files Browse the repository at this point in the history
  • Loading branch information
mfuji09 committed Jul 27, 2023
1 parent 12dcb76 commit d7de3e0
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions files/ja/web/api/element/fullscreenerror_event/index.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
---
title: 'Element: fullscreenerror イベント'
title: "Element: fullscreenerror イベント"
short-title: fullscreenerror
slug: Web/API/Element/fullscreenerror_event
l10n:
sourceCommit: a122e87245c624ba56197641b4d7b21b643a6021
sourceCommit: bbf7f25f9cf95fb154e2740a9fdc9c02818981bf
---

{{APIRef}}
Expand All @@ -20,9 +21,9 @@ l10n:
このイベント名を {{domxref("EventTarget.addEventListener", "addEventListener()")}} などのメソッドで使用するか、イベントハンドラープロパティを設定するかしてください。

```js
addEventListener('fullscreenchange', (event) => { });
addEventListener("fullscreenchange", (event) => {});

onfullscreenchange = (event) => { };
onfullscreenchange = (event) => {};
```

## イベント型
Expand All @@ -32,14 +33,14 @@ onfullscreenchange = (event) => { };
##

```js
const requestor = document.querySelector('div');
const requestor = document.querySelector("div");

function handleError(event) {
console.error('an error occurred changing into fullscreen');
console.error("an error occurred changing into fullscreen");
console.log(event);
};
}

requestor.addEventListener('fullscreenerror', handleError);
requestor.addEventListener("fullscreenerror", handleError);
// or
requestor.onfullscreenerror = handleError;

Expand Down

0 comments on commit d7de3e0

Please sign in to comment.