OT: form/javascript help

2003-08-21 Thread Phillip B
I know this can be done but I stink at java script. I want to select some text in a text field. Then click a graphic on the page and have it put an HTML tag around the selected text in the form field. Any idea on how to do this or where to find the code that does this? Phillip B. www.LoungeRoyale

OT form javascript help

2003-08-21 Thread Phillip B
I know this can be done but I stink at java script. I want to select some text in a text field. Then click a graphic on the page and have it put an HTML tag around the selected text in the form field. Any idea on how to do this or where to find the code that does this? Phillip B. www.LoungeRoyale

Re: OT form javascript help

2003-08-22 Thread jonhall
function makeBold(elem_id) { var start_text = ''; var end_text = ''; if (document.layers || window.opera) return; else if (document.all) { selected_text = document.selection.createRange(); new_text = "" + selected_text.text + "