Welcome to WebmasterWorld Guest from 188.8.131.52
Forum Moderators: incrediBILL
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
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.
<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"/>
Oh, and I'm pretty sure that AddFavorite isn't real code either...