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