Forum Moderators: open

Message Too Old, No Replies

Jumping to a specified word in the page

need alternative to find() or createTextRange()

         

Purple Martin

2:41 am on Jan 29, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I'm building a "find in page" search thing for a page with a very long list.

I want to jump to the next instance of a specified word in the document. For N4 I can use window.find() and for IE I can use document.body.createTextRange() but what can I use for N6+?

Purple Martin

11:59 pm on Jan 29, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I've been doing some reading around, and as far as I can tell:

window.find() worked in N4
window.find() got removed for N6
window.find() works again in N7

Can anyone confirm/deny this?

If this is true, I still need to find an alternative that works for N6.

Purple Martin

5:57 am on Feb 2, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Well it's true. N4 yes, N6 no, N7 yes.

Does anyone have an alternative for window.find() that works on N6 and Opera?