homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Home / Forums Index / Code, Content, and Presentation / HTML
Forum Library, Charter, Moderators: incrediBILL

HTML Forum

How to open browser's Find window using HTML code

10+ Year Member

Msg#: 9480 posted 11:31 am on Jan 18, 2005 (gmt 0)

Hi Friends

In my HTML page i want a link for search, which will open the browser Find window.

Is there any HTML code for that?

I am using "onClick='window.external.AddFavorite(location.href, document.title);' to open Add to Favorite window. Is there any similiar method for opening Find window too.

I don't want to put the message "Press Ctrl + F to search " in my web page :)

Thanks in Advance





WebmasterWorld Senior Member 10+ Year Member

Msg#: 9480 posted 8:56 pm on Jan 18, 2005 (gmt 0)

Hi, and Welcome to Webmaster World!

I highly doubt that this can be done in a way that will work cross-browser. That said, I did find the following page:


About halfway down you'll see the find() function. I wouldn't have a clue how to use it though - maybe one of the other brains around here can give some advice on that! ;)

Incidentally, you are aware that this will only search the current page, right? If you want a true "site search," you need to find an actual script to use. If that's what you're after, I can recommend Perlfect search as being easy to set up and use.


10+ Year Member

Msg#: 9480 posted 3:53 am on Jan 20, 2005 (gmt 0)


Thanks for the information.

But window.find() method is not working with IE.

What if I put google search button in my webpage to allow the user to search for the content in my own website?

Can anyone suggest me on that?

thanks & regards



10+ Year Member

Msg#: 9480 posted 4:02 pm on Jan 20, 2005 (gmt 0)


for educational institutions and non-profit organizations. don't know what you are but maybe that will be of some help.


WebmasterWorld Senior Member 10+ Year Member

Msg#: 9480 posted 7:38 pm on Jan 20, 2005 (gmt 0)

This code will create a search form for www.example.com:

<form method="get" action="http://www.google.com/search">
<input type="hidden" name="domains" value="www.example.com" />
<input type="text" size="25" name="q" maxlength="255" value="" />
<input type="submit" value="Search" name="btnG" />
<input type="hidden" name="sitesearch" value="www.example.com"/>


10+ Year Member

Msg#: 9480 posted 4:14 pm on Jan 21, 2005 (gmt 0)

I highly doubt it's possible. Besides, I have my Firefox set up so that I just type a word directly, and it's highlighted on the page, without me ever seeing a Find box. All browsers work differently, and not all browsers use Ctrl+F to launch the find... Indeed, there may be browsers that don't have find at all.

Oh, and I'm pretty sure that AddFavorite isn't real code either...

Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / HTML
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved