Login | Register   
LinkedIn
Google+
Twitter
RSS Feed
Download our iPhone app
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX


Tip of the Day
Language: CGI
Expertise: Beginner
Dec 22, 1999

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.

DevX Pro
 
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

Sitemap
Thanks for your registration, follow us on our social networks to keep up-to-date