Visit Mozilla.org

DOM:window.find

From MDC

« Gecko DOM Reference

Contents

[edit] Summary

Finds a string in a window.

[edit] Syntax

window.find(aString, aCaseSensitive, aBackwards, aWrapAround,
            aWholeWord, aSearchInFrames, aShowDialog);
  • aString: The text string for which to search.
  • aCaseSensitive: Boolean value. If true, specifies a case-sensitive search.
  • aBackwards: Boolean. If true, specifies a backward search.
  • aWrapAround: Boolean. If true, specifies a wrap around search.
  • aWholeWord: Boolean. If true, specifies a whole word search.
  • aSearchInFrames: Boolean. If true, specifies a search in frames.
  • aShowDialog: Boolean. If true, specifies a show Dialog.

[edit] Returns

true if the string is found; otherwise, false.

[edit] Example

[edit] Notes

[edit] Specification

DOM Level 0. Not part of any standard. This was added by with bug 9550.