window.addEventListener("vrdisplayconnect", () => {
info.textContent = "Display connected.";
reportDisplays();
});Window: vrdisplayconnect event / notebook
Window: vrdisplayconnect event
Runnable notebook: every JavaScript, HTML and CSS example on this page executes in a sandboxed local frame. Nothing leaves the browser.
window.onvrdisplayconnect = () => {
info.textContent = "Display connected.";
reportDisplays();
};