M
Martin Nadoll
hello
is it possible, to have a <textarea> element in a form, to write text into
that, select a part of that text and with a button to trigger a function
<button... onClick="showSelected('parameter???')">
that can work with the selection.
For example:
function showSelected(param???) {
// maybe:
my_Selected_Part_Of_Textarea=param???;
// or:
my_Selected_Part_Of_Textarea=document.forms['myForm'].elements['myTextarea'].selectedvalue;
alert(my_Selected_Part_Of_Textarea);
}
Does javascript capture, what is selected in that <textarea> element?
Thanks for any idea about that,
Martin Nadoll
is it possible, to have a <textarea> element in a form, to write text into
that, select a part of that text and with a button to trigger a function
<button... onClick="showSelected('parameter???')">
that can work with the selection.
For example:
function showSelected(param???) {
// maybe:
my_Selected_Part_Of_Textarea=param???;
// or:
my_Selected_Part_Of_Textarea=document.forms['myForm'].elements['myTextarea'].selectedvalue;
alert(my_Selected_Part_Of_Textarea);
}
Does javascript capture, what is selected in that <textarea> element?
Thanks for any idea about that,
Martin Nadoll