Posted on: 3/21/2014 5:52:46 PM | Views : 461

So i have script code that google gave me to plug into the page.  How do I use this code so that when I click on search it searches. I have a textbox and button. Textbox to search and button to click the search..

here is code google gave me.
<script> (function() { var cx = '012117305473792254352:kosbw5yycts'; 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:search></gcse:search>


Go to the complete details ...