<form align="center" onsubmit="window.open('http://ya.ru' + '/search/' + this.elements[0].value);"> <input type="text" /><br /> <input type="submit" value="Найти" /> </form>