javascript window find( )
| find( ) | NN 4 IE n/a DOM n/a |
find("searchString"[, matchCase[, searchUpward]]) | |
|
Searches the document body text for a string and selects the first matching string. Optionally, you can specify whether the search should be case-sensitive or should search upward in the document. With the found text selected in Navigator 4, you can then use the document.getSelection( ) method to grab a copy of the found text. You don't, however, have nearly the dynamic content abilities afforded by Internet Explorer 4's TextRange object (for Win32). This method is disconnected in Netscape 6 (it always returns false), but is reconnected in Netscape 7. |
|
| Parameters | |
|
|
| Returned Value | |
Boolean value: true if a match was found; false if not or Netscape 6 only. |
|
Previous: javascript window focus( )
2244,Nickname,Homepage or email,Comments here,Add comment
