
10.02.2010, 09:41
|
|
Постоянный
Регистрация: 05.12.2004
Сообщений: 647
С нами:
11278406
Репутация:
818
|
|
Сообщение от snep
Вопрос следущий, почему у меня не пропадает текст, после того когда я кликну по ней мышью в Форму ввода?
Код:
<html>
<head>
<title>off_top</title>
<script type=text/javascript>
function f(){
var mail = document.getElementByld('mail');
mail.value = '';
}
</script>
</head>
<body>
<form>
<input type="text" value="Введите e-mail" onclick="f()" id="mail">
Вот пример:
PHP код:
<form method="get" action="">
<input name="s" type="text" value="Вводи" onfocus="if (this.value == 'Вводи') {this.value = '';}" onblur="if (this.value == '') {this.value = 'Вводи';}" size="10" tabindex="1" />
<input name="x" type="submit">
</form>
|
|
|