Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

"Find" using Javascript?

Status
Not open for further replies.

vbkris

Programmer
Jan 20, 2003
5,994
IN
I want the "Find" procedure to be activated (as in Edit-->Find on this page (or) Ctrl+F)

can i do this using JS?
i want a link on clicking which the Find box must open.



Known is handfull, Unknown is worldfull
 
to my knowledge, js cannot do this.

if you're only concerned about IE then you can use the TextRange object to search some text.

=========================================================
while (!succeed) try();
-jeff
 
pass the varable and I guess an object too! Because I intend on passing the object variable that I set with the createObject function to a new window later in the effort.

Sorry about the confusion between the threads. I need to slow down.
 
This is doable, I found a snippet once at javascriptsource.com .. but since all my codes are gone at the moment I suges you search there, cause it should still linger around o)

My codes look like something a kid wrote
I have absolutely no idea what I am talking about
Somehow I still manage to make it work
 
On a second thought, is there a way to call the built-in find window like vbkris asked?
 
"On a second thought, is there a way to call the built-in find window like vbkris asked?
"

like i said, not with javascript. the script on uses the TextRange object and works in IE only. hey, that sounds familiar too... ;-)

=========================================================
try { succeed(); } catch(E) { tryAgain(); }
-jeff
 
well guys thanks for the answers, i am following up what u have taught me...

Known is handfull, Unknown is worldfull
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top