Also, as this is a quite important feature to me, can I suggest a “click two times” method at least?
So a second (optional of course, set in the control panel) button that appears just after the document has been loaded to highlight the term searched in the page. In that way the code used will be independent from the actual search, you just need to pass to this button the word previously searched.
there are some solutions about this on the net, but of course not directly applicable here. anyway just to highlight (pun intended) that this is a quite common feature.