Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript How to remove the count of search results in google cse v2

  • This topic is empty.
Viewing 1 post (of 1 total)
  • Author
    Posts
  • #166319
    Raja
    Participant

    My code is here :

    <!DOCTYPE html>
    <html>
    <body>

    <h1>My Sample Site</h1>

    My first paragraph.

    <script>
    (function() {
    var cx = ‘009614283471325704461:ozifsfxuwxw’;
    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 filter=”0″></gcse:searchbox-only>

    <script>
    (function() {
    var cx = ‘009614283471325704461:ozifsfxuwxw’;
    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:searchresults-only filter=”0″></gcse:searchresults-only>

    </body>
    </html>

Viewing 1 post (of 1 total)
  • The forum ‘JavaScript’ is closed to new topics and replies.