Navigator: presentation property
Limited availability
This feature is not Baseline because it does not work in some of the most widely-used browsers.
Secure context: This feature is available only insecure contexts (HTTPS), in some or allsupporting browsers.
Thepresentation read-only property ofNavigator serves as the entrypoint for thePresentation API andreturns a reference toPresentation object.
In this article
Value
A reference toPresentation object.
Examples
Currently, thenavigator.presentation property is most useful for feature checking, and, for the receiving user agent, to access thePresentationReceiver.
js
// Check if the Presentation API is available in the current browserif ("presentation" in navigator) { footer.textContent = navigator.presentation.receiver ? "Receiving presentation" : "(idle)";} else { console.error("Presentation API is not available in this browser.");}Specifications
| Specification |
|---|
| Presentation API> # dom-navigator-presentation> |