Google Product Forums

Re: How do you make search results display in same window rather than new window?


omr Jan 27, 2012 12:21 PM
Posted in group: Google Custom Search

Categories: Creating and Editing :


You can use the "startHistoryManagement" method to enable browser history management for the Custom Search Element.

startHistoryManagement is documented in the Custom Search Element JavaScript Reference.  (In the "CustomSearchControl Methods" section, find startHistoryManagement about half-way down the page.)
http://code.google.com/apis/customsearch/docs/js/cselement-reference.html

Here is a demo.  View the source code to see how the startHistoryManagement method is used.
http://googlecustomsearch.appspot.com/element/history/

-- omr