I want to start by saying, I hope this is the way we can ask questions on this site. If Not I am very sorry!
Hi guys!! I have been stuck with this issue for a long long time.
I am creating a site. But my Search bar is not working this could be due to a very very simple issue but still it must wrok to be able to move forward.
So I have my Homepage that is set up a looking nice. The Search bar is in the middle. I want people to be able to type in a single word into the search bar and a certain page will come up. For Example.
A person is on the Hompage. To get onto lets say "page6" the person types in Page6 into the search bar, and presses GO. Then Page 6 loads up! Done. BUT, When I type in Page2 into the search bar Google's homepage comes up. Why is this??
I should say also that The site is not online, the website is all in a folder on my desktop! here is the snip of Code. It is Java btw.
<center><script type="text/javascript">
// Google Internal Site Search script- By JavaScriptKit.com (http://www.javascriptkit.com)
// For this and over 400+ free scripts, visit JavaScript Kit- http://www.javascriptkit.com/
// This notice must stay intact for use
//Enter domain of site to search.
var domainroot="www.javascriptkit.com"
function Gsitesearch(curobj){
curobj.q.value="site:"+domainroot+" "+curobj.qfront.value
}
</script>
<form action="http://www.google.com/search" method="get" onSubmit="Gsitesearch(this)">
<p><br />
<input name="q" type="hidden" />
<input name="qfront" type="text" style="width: 180px" /> <input type="submit" value="Search" /></p>
</form>
I do hope on of you guys can lend me a hand with this as it need to be done so I can move on!
Thanks!