Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Use Browser Search (Ctrl+F) through a button in website?

I have created a website and have added a button and lot of text. What I want is to use the browser search (Ctrl+F), when I press the button which I added in website.

How can I achieve this?

like image 323
Ashok Gupta Avatar asked Nov 10 '11 13:11

Ashok Gupta


People also ask

How does Ctrl F work on browser?

"Control+F" (or "Command+F" on a Mac) is the keyboard shortcut for the Find command. If you're in a document or in a web browser, pressing the Ctrl key + the F key will bring up a search box in the top right corner of the screen.

How do I search without control F?

If you don't like the Ctrl-F shortcut, in most browsers you can use F3 instead.

How does Ctrl F work in Chrome?

Ctrl+F makes a page search and with Docs, the document IS the page, thus Chrome considers it as the same thing and it overrides the browser page search.


1 Answers

It kind of works for FF. See this page

 <a href="#" onclick="find();">Find in This Page...</a> 
like image 139
Junaid Avatar answered Oct 19 '22 21:10

Junaid