View Full Version : Internal Site Search script

07-01-2005, 05:05 PM
Could anyone help me out with this? I have tried loads of them but they don't seem to work... :(

thanks :)

07-01-2005, 06:50 PM
Please post in the correct forum: this isn't a DD scripts question, and better belongs in the JavaScript forum.

Anyhow, the best JavaScript internal search scripts simply access a major search engine like Google to do the searching. For example:


07-01-2005, 07:16 PM
Oh, I'm sorry....

Well, thanks. These are exactly the ones I was using and were not working. I just thought someone might know something different. But thanks anyway...

07-01-2005, 07:34 PM
Hmmm what's the error exactly? As long as your site is adequately crawled by Google for example, the scripts above simply queries Google for the search terms on your site. Of course if you site is new and hasn't been crawled yet by the major search engines, these scripts will not work.

07-01-2005, 08:06 PM
It's not quite new...it's an updated version... with lost of new pages.... :(
Ok, thanks then.... it must be that the problem....

07-02-2005, 03:24 PM
<input type="text" id="search"/>
<button onclick="window.location.href=document.getElementById('search').value+'+site:mysite.com';">Search!</button>