Find Dialog: window.find()
Answer: In Firefox and some Gecko browsers, you can
display the browser's Find dialog
with the last (seventh) parameter
. In Netscape Navigator and Firefox, you can also use the
method without parameters. The Find dialog may look as shown below. (The actual behavior depends on the parameters passed, the browser and OS version; the screenshot below shows Firefox 3.6 under Windows XP with Windows Classic UI theme.)
Try these window.find() techniques here and below:This example was created using the following code:
Internet Explorer does not support
. However, in most browsers including Internet Explorer, you can write a script that finds a user-defined string on the page. For more information on this technique, see Searching for text.
The general syntax of the
method is as follows:
You can use up to seven parameters; they are explained below. All parameters are optional; the default is
or an empty string.