<script type = "text/javascript" idioma = "javascript"> function clear1 () {if (confirm ("tem certeza de que deseja limpar os dados?")) {document.main.text1.value = ""; }} </script> <body> <nome name = "main"> <input type = "text" name = "text1"/> <input type = "button" name = "submit" value = "limpe os dados" onclick = "return clear1 ();"> </form> </body>