Type | String |
---|---|
Mandatory | No |
The scope
member is a string that defines the navigation scope of this web application's application context. It restricts what web pages can be viewed while the manifest is applied. If the user navigates outside the scope, it reverts to a normal web page inside a browser tab or window.
If the scope
is a relative URL, the base URL will be the URL of the manifest.
Examples
If the scope is relative, the manifest URL is used as a base URL:
"scope": "/app/"
The following scope limits navigation to the current site:
"scope": "https://example.com/"
Finally, the following example limits navigation to a subdirectory of the current site:
"scope": "https://example.com/subdirectory/"
Specification
Specification | Status | Comment | Feedback |
---|---|---|---|
Web App Manifest |
Working Draft |
Initial definition. |
Browser compatibility
The compatibility table in this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.
Desktop | Mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
scope | Chrome ? | Edge ? | Firefox ? | IE ? | Opera ? | Safari ? | WebView Android ? | Chrome Android ? | Firefox Android ? | Opera Android ? | Safari iOS ? | Samsung Internet Android ? |
Legend
- Compatibility unknown
- Compatibility unknown
- Experimental. Expect behavior to change in the future.
- Experimental. Expect behavior to change in the future.