<script> function BlueNosERulZ() { var rep = document.reply.value; var text = prompt("Enter Text"); rep = rep+("[b]" + text + "[/b]"); } </script> <input type="button" onclick="BlueNosERulZ();" /> <textarea name="reply"></textarea>