I'm trying to do an Google CSE searchfield which redirects the user to the original google resultspage.
my site with the CSE should look & feel like the original google site with other benefits. So the user enters his keywords in my CSE and get the results on the original google website.
Another question ist, how I activate an autofocus on my CSE?
MY Code is
<script>
(function() {
var cx = 'XXXX:YYYY';
var gcse = document.createElement('script');
gcse.type = 'text/javascript';
gcse.async = true;
gcse.src = (document.location.protocol == 'https:' ? 'https:' : 'http:') +
'//www.google.com/cse/cse.js?cx=' + cx;
var s = document.getElementsByTagName('script')[0];
s.parentNode.insertBefore(gcse, s);
})();
</script>
<gcse:searchbox-only></gcse:searchbox-only>
Thank you!