Click to See Complete Forum and Search --> : ctrl+f using javascript


mwouters
01-23-2003, 08:52 AM
This is not possible, i know now..
I read something about this work around:

http://msdn.microsoft.com/library/default.asp?url=/workshop/author/dhtml/reference/methods/findtext.asp

but i can't get it to work.. it always selects the total text.. i do get a "true" when the word is on the page, but i want the word to be selected off course, like it would be with ctrl+f

Does anyone has a script that can do this? Idealy with a field or a javascript alert to provide a word to look for..

Thanks!

Mark.

khalidali63
01-23-2003, 09:25 AM
do u want a script that will search a word on the page?

mwouters
01-23-2003, 09:31 AM
yes!

a javascript that does the same thing as ctrl+f

khalidali63
01-23-2003, 09:35 AM
see if this is what you want
http://68.145.35.86/skills/javascripts/searchWordOnPage.html

cheers

Khalid

mwouters
01-23-2003, 09:40 AM
That's it!!
Thank you very much mate!

Cheers

Mark.