<form action="search/" onsubmit="location.href = this.action+document.getElementById('search').value;return false;"> <input type="text" id="search" /> </form>