How can I programmatically bring up a Find window? window.find() works in Netscape, but not in IE.
Created May 7, 2012
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
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