The Web Just This Site

NM Web Tutorials

Search Bar

XHTML

What The Code Does

<!--The input for search-->

 

<form method="get" action="http://www.google.com/search">
<input type="text" name="q" size="
16"
maxlength="255" value="" />


<!--The button itself-->

 

<input type="submit" value="Search" /><br />

 

<!--search THE WEB-->

 

<input type="radio" name="sitesearch" value="" />
The Web

 

<!--search JUST THIS SITE-->

<input name="sitesearch" type="radio"
value="
nathangraphicdesign.com" checked="checked" />
Just This Site
</form>

 

 


The Web Just This Site

This gives you google search bar, that will only search within your website, so unfortunately you must have it on a server in order to test it. There are only a couple of parts you would want to change:

<input type="text" name="q" size="16"

The number is the size of the search bar itself. The other thing you may want to change is at the bottom"

value="nathangraphicdesign.com" checked="checked"

You would obviously want to change nathangraphicdesign.com, to whatever your domain is. That’s it :) For some Advice on getting your site indexed by google, go here.