Since March 2023, this feature works across the latest devices and browser versions. This feature might not work in older devices or browsers.
The pdfViewerEnabled read-only property of the Navigator interface indicates whether the browser supports inline display of PDF files when navigating to them.
If inline viewing is not supported the PDF is downloaded and may then be handled by some external application.
Note: This method replaces a number of legacy methods of inferring support for inline viewing of PDF files.
true if the browser can display PDF files inline when navigating to the file (using either an internal viewer or a PDF viewer extension); otherwise false.
To check PDF inline viewing support:
if (!navigator.pdfViewerEnabled) {
// The browser does not support inline viewing of PDF files.
}
| Specification |
|---|
| HTML> # dom-navigator-pdfviewerenabled> |
| Desktop | Mobile | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Chrome | Edge | Firefox | Opera | Safari | Chrome Android | Firefox for Android | Opera Android | Safari on IOS | Samsung Internet | WebView Android | WebView on iOS | |
pdfViewerEnabled |
94 | 94 | 99 | 80 | 16.4 | 94 | 99 | 66 | 16.4 | 17.0 | 94 | 16.4 |
© 2005–2025 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/Navigator/pdfViewerEnabled