Показать сообщение отдельно
  #2 (permalink)  
Старый 07.08.2013, 12:18
Профессор
Отправить личное сообщение для skrudjmakdak Посмотреть профиль Найти все сообщения от skrudjmakdak
 
Регистрация: 27.04.2012
Сообщений: 1,410

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"> 
<html> <head>

<body>
<form action="http://tratata.php" target="blank" id="form" name="myform" method="post">
<input type="submit" name="join" value="join777" onclick="clk(this);">
<input type="submit" name="info" value="info777" onclick="clk(this);">
<input type="submit" name="create" value="create777" onclick="clk(this);">
</form>

<script type="text/javascript"> 
var form = document.getElementById('form');
function clk(ths)
	{
	form.setAttribute('target', ths.getAttribute('name') == 'join' ? 'blank' : '');
	}
</script> 
</body>
</html>
Ответить с цитированием