Is it possible to detect text selection from a search with Ctrl+F?
<p>How can I detect text selection from a text search using the browsers Ctrl+F.</p>

<p>For example, I want to make a FAQ, where are the items are closed (to remove clutter), and clicking them opens the text within them, but at the same time I don't want Ctrl+F to be broken.</p>

<p>So I'm thinking, is there a way for JavaScript to detect that I have searched for some text within a non visible (but selectable) block of text, and to automatically open it.</p>

<p>Is it even possible to detect text selection from a search with Ctrl+F? If so, how?</p>

<p>A more specific example: I have a div with the id of "one" and a div with the id of "two"
both have their own text:</p>

<pre><code>&lt;div id="one"&gt;Google is a search engine&lt;/div&gt;
&lt;div id="two"&gt;Stackoverflow users are very informative&lt;/div&gt;
</code></pre>

<p>both have their text hidden from view but still selectable, but not by mouse (using margins or covering)</p>

<p>So a user searches for "Stackoverflow" on this page, I want to trigger a JavaScript function upon the search selection (how??), and I need the function that runs to know which div, with what ID has some text selected.</p>
