Home › Forums › Other › Empty search box › Reply To: Empty search box
Thank you so much for your feedback, i tried the one of google and it was a little bit confusing, and now, i need your help to match between google search code and my code, here we go :
Google code :
<script>
(function() {
var cx = '000954822679884360703:to7re88yauo';
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>
<code></code>
My code :
<!-- begin search box -->
<div class="box">
<h2>صندوق البحث</h2>
<form action="#ads">
<input type="text" name="s" id="s" value="" />
<button type="submit">اذهب</button>
</form>
</div>
<!-- end search box -->
<code></code>
Thank you guy’s