<script type = "text/javascript" language = "javascript"> function clear1 () {if (sefint ("Вы уверены, что хотите очистить данные?")) {document.main.text1.value = ""; }} </script> <body> <form name = "main"> <input type = "text" name = "text1"/> <input type = "кнопка" name = "vade" value = "clear the Data" onclick = "return clear1 ();"> </form> </body>