Table of contents
- 1. Summary
- 2. Syntax
- 3. Example
- 4. Notes
- 5. Browser compatibility
- 5.1. Gecko notes
- 6. Specification
- 7. See also
Summary
Takes the document out of full-screen mode; this is used to reverse the effects of a call to make an element in the document full-screen using its element.mozRequestFullScreen()
method.
Note: If another element was previously in full-screen mode when the current element was placed into full-screen mode, that previous element regains full-screen mode. A "stack" of full-screen elements is maintained by the browser for this purpose.
Syntax
document.mozCancelFullScreen();
Example
Example needed.
Notes
See Using full-screen mode for details and examples.
Browser compatibility
| Feature | Chrome | Firefox (Gecko) | Internet Explorer | Opera | Safari |
|---|---|---|---|---|---|
| Basic support | ? | 9.0 (9.0) | ? | ? | ? |
| Feature | Android | Firefox Mobile (Gecko) | IE Mobile | Opera Mobile | Safari Mobile |
|---|---|---|---|---|---|
| Basic support | ? | 9.0 (9.0) | ? | ? | ? |
Gecko notes
The full-screen mode "stack" which allows you to cancel full screen mode for one element, restoring a previous element to full-screen mode automatically, was implemented in Gecko 11.0 (Firefox 11.0 / Thunderbird 11.0) .
Specification
None
Mozilla Developer Network