1 Reply

Hooking to the page load event is not reliable because of the AJAX framework. When the user performs actions in the search page (e.g. clicking a facet item or on the search button), most of the time, it's a partial postback that to the web server that is executed. From the browser's point of view, it's the same web page that stays loaded. Only the needed parts of the DOM are updated in response to a partial postback.

I would suggest to add the following script block at the end of the ResultsPanel.ascx file of your skin. The code assumes that your MainResultList control ID is "r".