I'm with the CSE search on my site, and I even asked that question: How to change URL objects via JavaScript? , and was wondering if you have how to create a script that page images open in a new tab when they are clicked.
And I wanted the user to be redirected to the homepage of the site when the search page was with the parameter ?q=
empty (no search).