Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
mohamedkhallouq
GitHub Repository: mohamedkhallouq/content
Path: blob/main/files/en-us/mozilla/add-ons/webextensions/api/find/index.md
6568 views
---
title: find slug: Mozilla/Add-ons/WebExtensions/API/find page-type: webextension-api tags: - API - Add-ons - Extensions - Reference - WebExtensions - find browser-compat: webextensions.api.find
---

{{AddonSidebar}}

Finds text in a web page, and highlights matches.

To use this API you need to have the "find" permission.

Functions

  • {{WebExtAPIRef("find.find()")}}

    • : Find text in a web page.

  • {{WebExtAPIRef("find.highlightResults()")}}

    • : Highlight the last set of matches found.

  • {{WebExtAPIRef("find.removeHighlighting()")}}

    • : Remove any highlighting.

Browser compatibility

{{WebExtExamples("h2")}}

{{Compat}}