find
Finds text in a web page, and highlights matches.
To use this API you need to have the "find" permission.
Functions
find.find()
- Find text in a web page.
find.highlightResults()
- Highlight the last set of matches found.
find.removeHighlighting()
- Remove any highlighting.
Browser compatibility
Desktop | Mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
Chrome | Edge | Firefox | Internet Explorer | Opera | Safari | WebView Android | Chrome Android | Firefox for Android | Opera Android | Safari on IOS | Samsung Internet | |
find |
No |
No |
57 |
? |
No |
No |
? |
? |
No |
? |
? |
? |
highlightResults |
No |
No |
57 |
? |
No |
No |
? |
? |
No |
? |
? |
? |
removeHighlighting |
No |
No |
57 |
? |
No |
No |
? |
? |
No |
? |
? |
? |
Example extensions
© 2005–2021 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/find