Monday, July 23, 2012

Search Box

Here is a simple 'search box' code:





<form action="/search">
    <label for="q">Search:</label>
    <input type="text" name="q" id="q">

 </form>






It will look like this, without button, just type and enter. It will search into your website.






If you want it search on google or any other site you have to write google url or website url before search. Like "https://www.google.com/search" instead of "/search" .


<form action="https://www.google.com/search">
    <label for="q">Search:</label>
    <input type="text" name="q" id="q">

 </form>



   
   





Later on i will show more complicated search boxes here.

No comments:

Post a Comment

Welcome to Bali Villa & Land




Welcome to Bali Land & Villa


This site is mostly for real estate business and Bali Property but little bit from everything content. If you have any questions please comment on entries or email me directly.

Bali is the one of the most beautiful island in the world. It has increasing number of visitors every year. It is also most profitable property place in the world. And you can find some of those properties and solutions here.

I hope you will enjoy.

Thanks for visiting

Some entries' contents are still weak but will be updated