February 28th, 2003, 05:57 AM
user clicks button, types in 'hello'
February 28th, 2003, 11:56 AM
For a simple one:
var txt=window.prompt('Enter the text to bold','');
<input type="button" value="B" onclick="bold(this.form);">