in pratica non fa che aggiungere nella texarea delle frasi tra dei tag che specifichi tramite l'imput button
codice:
<html>
<head>
<script language="JavaScript">
<!--
function AddFormat(formattazione)
{
txtdaformattare=prompt('Inserire il testo da porre fra <'+formattazione+'> e </'+formattazione+'>:');
txt="<"+formattazione+">"+txtdaformattare+"</"+formattazione+">";
document.mioform.miatxt.value+=txt;
}
-->
</script>
</head>
<body>
<form name="mioform">
<input type="button" name="Button" value="B" onClick="AddFormat('b')"><input type="button" name="Button" value="u" onClick="AddFormat('u')">
<textarea name="miatxt"></textarea>




</form>
</body>
</html>