devxlogo

Using the Find Method of the Window Object

Using the Find Method of the Window Object

Question:

Can I find the text on an HTML page from another window (where the find option is available)?

Answer:

If you are using Netscape Navigator 4+, you can use the find method of the Window object. This method works just as you would expect in that you can specify the string to look for, case-sensitivity, and direction. The syntax is as follows:

window.find(StringTLookFor, IsCaseSensitive, SearchBackwards)

IsCaseSensitive and SearchBackwards are booleans. Specify either TRUE or FALSE for these variables. Alternatively, you can call the find method with no arguments. Doing so will invoke the Find dialog box, allowing the user to specify their own arguments.

See also  Professionalism Starts in Your Inbox: Keys to Presenting Your Best Self in Email
devxblackblue

About Our Editorial Process

At DevX, we’re dedicated to tech entrepreneurship. Our team closely follows industry shifts, new products, AI breakthroughs, technology trends, and funding announcements. Articles undergo thorough editing to ensure accuracy and clarity, reflecting DevX’s style and supporting entrepreneurs in the tech sphere.

See our full editorial policy.

About Our Journalist