Title: Search box function
Last modified: August 19, 2016

---

# Search box function

 *  [clenzltd](https://wordpress.org/support/users/clenzltd/)
 * (@clenzltd)
 * [16 years, 3 months ago](https://wordpress.org/support/topic/search-box-function/)
 * Hi
 * My theme has a search box that activates the search function by hitting return.
 * I would also to like it to work by clicking on the button that is incorporated
   into the search box.
 * Here on my unfinished site:
 * [http://www.clenz.co.uk](http://www.clenz.co.uk)
 * Is this possible?
 * Here is my code. Thanks in advance for any answers.
 * <h2>Search</h2>
    <form id=”searchform” method=”get” action=”<?php bloginfo(‘home’);?
   >/”> <input type=”text” value=”search this site…” onfocus=”if (this.value == ‘
   search this site…’) {this.value = ”;}” onblur=”if (this.value == ”) {this.value
   = ‘search this site…’;}” size=”18″ maxlength=”50″ name=”s” id=”s” /> </form>

The topic ‘Search box function’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [clenzltd](https://wordpress.org/support/users/clenzltd/)
 * Last activity: [16 years, 3 months ago](https://wordpress.org/support/topic/search-box-function/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
