Please note, this is a STATIC archive of website developer.mozilla.org from November 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

startFind

startFind( mode )
Return type: no return value
Call this method to handle your application's "find" command.  This opens the findbar, focuses the edit field for the search term, and selects its contents.  The first time this is called for a given findbar, the findbar will flash to draw attention to itself.  The mode should be one of FIND_NORMAL, FIND_TYPEAHEAD, or FIND_LINKS.  If you don't pass a mode, the last-used mode for the same findbar is used.  If the findbar hasn't been used before, FIND_NORMAL is the default.

Example

Typically, you'll simply bind this method to your "find" command, like this:

<command name="cmd_find" oncommand="gFindBar.startFind(gFindBar.FIND_NORMAL);"/>

Document Tags and Contributors

 Contributors to this page: Sheppy, pippijn
 Last updated by: Sheppy,