<script>
window.onload = function(){
bs = document.getElementsByTagName('b');
for (i = 0; i < bs.length; i++){
bs[i].onclick = function (){
document.form.elements[0].value += this.innerHTML
}
}
}
</script>
<form name='form'>
<input type='text' value=''>
</form>
<b>Бла</b> <b>блоу</b> <b>блу</b>