ho corretto tutto ma non funziona...

riposto il codice del file:

codice:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Documento senza titolo</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script language="javascript">
<!--

function aggiungi(code) {
 var testo=prompt("Inserire il testo:");
 if (testo!=undefined) document.nomeform.nomecampo.value+="["+code+"]"+testo+"[/"+code+"] ";
 }
//-->
</script>
</head>
<form name="pasticcio">
<input type="button" value="B" onclick="aggiungi('b');" />
<textarea name="ciccio" cols="2" rows="2"></textarea>


</form>



<body>

</body>
</html>