Download Brochure

Monday, 2 April 2018

HOW TO CREATE A SEARCH ENGINE FOR YOUR WEBSITE


Enter your  gmail id & password & make login

  1. Then  click on add  button :

  1. 3. After that   enter your site  URL  for   example    
https://www.phpdevelopemnttricks.blogspot.com  and select  language and enter name of search engine  then click on Create ..
4. Then your will  for  following to get your code :

5. After click on Get code   you will see following code just copy and paste inside your  <div > tag where you want to display search engine box ..

6. Here is the sample  html  code for  example :
<html>
<body>
<div>
<script>
  (function() {
    var cx = '013461944738121217145:ogsz8ox40jm';
    var gcse = document.createElement('script');
    gcse.type = 'text/javascript';
    gcse.async = true;
    gcse.src = (document.location.protocol == 'https:' ? 'https:' : 'http:') +
        '//cse.google.com/cse.js?cx=' + cx;
    var s = document.getElementsByTagName('script')[0];
    s.parentNode.insertBefore(gcse, s);
  })();
</script>
<gcse:search></gcse:search>
</div>
</body>
</html>

output :


About the Author

Vissicomp Technology

About Vissicomp

Vissicomp Technology- Sharpens your IT edge

0 comments:

Post a Comment

Special Navratri Offer Starts from 26th Sept. to 10th Oct. 2022. Join Any Course ...

  𝗛𝗨𝗥𝗥𝗬 𝗨𝗣!! Special Navratri Offer .. Grab This Opportunity Navratri Offer Get 10% Off For Any Course Registration Offline 100% Jo...

 

VISSICOMP TECHNOLOGY © 2015 - Blogger Templates Designed by Templateism.com, Plugins By MyBloggerLab.com