How can I programmatically bring up a Find window? window.find() works in Netscape, but not in IE.

Ravi Verelly

I'm not sure whether we can programmatically bring up a Find Window in IE, but here is an alternative:
We can use createTextRange() object for searching the document since IE doesn't support window.find().

var textRange = document.body.createTextRange();
var found = textRange.findText(text);

Here is an Example:

Page Search

0 Comments  (click to add your comment)
Comment and Contribute

 

 

 

 

 


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

 

 

About | Sitemap | Contact