The ft:search:resultsloaded
event is sent when new results are loaded on the Search page. The following lines show an example of how to use the ft:search:resultsloaded
event:
document.addEventListener('ft:search:resultsloaded', function (event) {
if (window.location.href.indexOf('/search/all') != -1) {
window.alert('We found all these documents corresponding to your search - byIndexOf');
}
});