• Post Reply Bookmark Topic Watch Topic
  • New Topic

FIND in html page?  RSS feed

 
verduka fox
Ranch Hand
Posts: 178
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a request to add a "find" feature to one of the pages in my web application. Does anyone know of a way to have a button that, when clicked, will call Ctl + F? This would effectively perform the same operation as clicking Edit -> Find.
Any resources you can provide would be greatly appreciated.
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have my own find script I made
http://www10.brinkster.com/A1ien51/scripts/FindBar.htm
I think that onclick="window.find()" works in newer browsers...not 100% sure.
Eric
 
verduka fox
Ranch Hand
Posts: 178
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I tried your suggestion of window.find() but I couldn't get it to work on IE6. Any suggestions?
Thanks!
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i think it only works in Netscape.....
 
verduka fox
Ranch Hand
Posts: 178
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do you know of any way to get it to work in IE6? My application is on our intranet and we only support IE6.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!