<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>Поиск</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<style>
#yandexSearch
{
cursor: pointer;
border-bottom: 1px dashed;
}
</style>
<meta http-equiv="Content-Script-Type" content="text/javascript" />
<script src="http://code.jquery.com/jquery-latest.min.js"></script>
<!--[if lt IE 9]>
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<script>
$(document).ready(function () {
document.getElementById('yandexSearch').onclick = function () {
var search = this.parentNode.parentNode,
query = document.getElementById('query');
search.action = 'http://yandex.ru/yandsearch';
query.name = 'text';
search.submit();
};
});
</script>
</head>
<body>
<form action="http://www.google.ru/search" target="_blank">
<input id="query" type="text" name="q" />
<input type="submit" value="Google!" />
<div>
<span id="yandexSearch">Поискать на Яндексе</span>
</div>
</form>
</body>
</html>