Skip to content

Commit 46501b4

Browse files
committed
Request+Exit Fullscreen button
1 parent 41f727d commit 46501b4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

PointerLockAndFullscreen.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -300,6 +300,7 @@
300300
<button onclick="document.webkitExitPointerLock();">Unlock Pointer</button>
301301
<button onclick="console.log(document.webkitPointerLockElement);">document.webkitPointerLockElement</button>
302302
<button onclick="ToggleFullscreen(document.getElementById('container')); LockMouse(locktarget1);">Toggle Fullscreen & Lock Pointer</button>
303+
<button onclick="RequestFullscreen(document.getElementById('container')); ExitFullscreen();">Request+Exit Fullscreen</button>
303304
<form name="displaytext">...<br>...</form>
304305
<div id="locktarget1" class="locktarget">
305306
Target 1

0 commit comments

Comments
 (0)