agentdeepak

Google Custom Search Engine Results Only Code

Mar 28th, 2015
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <script>
  2.   (function() {
  3.     var cx = 'partner-pub-0729143788067006:7750213438';
  4.     var gcse = document.createElement('script');
  5.     gcse.type = 'text/javascript';
  6.     gcse.async = true;
  7.     gcse.src = (document.location.protocol == 'https:' ? 'https:' : 'http:') +
  8.         '//www.google.com/cse/cse.js?cx=' + cx;
  9.     var s = document.getElementsByTagName('script')[0];
  10.     s.parentNode.insertBefore(gcse, s);
  11.   })();
  12. </script>
  13. <gcse:searchresults-only></gcse:searchresults-only>
Add Comment
Please, Sign In to add comment