Class Document
Documentインターフェイスの拡張です。Mozillaの提案ベースでの実装例が多いので、記述をMozillaWikiにあわせます。
Defined in: Document.js.
| Constructor Attributes | Constructor Name and Description |
|---|---|
|
Document()
コンストラクタは使用できません。
|
| Field Attributes | Field Name and Description |
|---|---|
|
読み取り専用。フルスクリーン化されているElementを返します。
|
|
|
読み取り専用。ブラウザがフルスクリーンの状態であるかを表します。
|
|
|
読み取り専用。ブラウザがフルスクリーン化することが可能であるかを表します。
|
|
|
読み取り専用。フルスクリーン状態中に、キー入力が有効であるかを表します。
|
| Method Attributes | Method Name and Description |
|---|---|
|
フルスクリーン状態の解除を非同期に要求します。
|
| Event Attributes | Event Name and Description |
|---|---|
|
onfullscreenchange(event)
フルスクリーンの状態が変更になったときに呼び出されます。
|
Class Detail
Document()
コンストラクタは使用できません。
- See:
- Documentインターフェイスの拡張(W3C)
- Gecko:FullScreenAPI(MozillaWiki)
- Native Fullscreen JavaScript API(plus jQuery plugin)(JOHN DYER'S CODE)
Field Detail
{Element}
currentFullScreenElement
読み取り専用。フルスクリーン化されているElementを返します。
- Since:
- Chrome 15(Dev)+, Safari 5.1+ webkitCurrentFullScreenElement,
W3C fullscreenElement (プロパティ名が違うことに注意),
MozillaWikiの提案に含まれていない
{boolean}
fullScreen
読み取り専用。ブラウザがフルスクリーンの状態であるかを表します。
- Since:
- Chrome 15(Dev)+, Safari 5.1+ webkitIsFullScreen (Isに注意)
{boolean}
fullScreenEnabled
読み取り専用。ブラウザがフルスクリーン化することが可能であるかを表します。
- Since:
- W3C fullscreenEnabled
{boolean}
fullScreenKeyboardInputAllowed
読み取り専用。フルスクリーン状態中に、キー入力が有効であるかを表します。
- Since:
- Chrome 15(Dev)+, Safari 5.1+ webkitFullScreenKeyboardInputAllowed
Method Detail
cancelFullScreen()
フルスクリーン状態の解除を非同期に要求します。
- Since:
- Chrome 15(Dev)+, Safari 5.1+ webkitCancelFullScreen,
W3C exitFullscreen (メソッド名が違うことに注意)
Event Detail
onfullscreenchange(event)
フルスクリーンの状態が変更になったときに呼び出されます。
- Parameters:
- {Event} event
- Since:
- Chrome 15(Dev)+, Safari 5.1+ onwebkitfullscreenchange,
MozillaWikiの提案に含まれていない