// Check if the Presentation API is available in the current browser
if ("presentation" in navigator) {
footer.textContent = navigator.presentation.receiver
? "Receiving presentation"
: "(idle)";
} else {
console.error("Presentation API is not available in this browser.");
}Navigator: presentation property / notebook
Navigator: presentation property
Runnable notebook: every JavaScript, HTML and CSS example on this page executes in a sandboxed local frame. Nothing leaves the browser.