I want the user to be able to block of (or select) some text in a text area and then I can write it into a prompt(); command. I have tried this function but it wouldn't work:
function getRange(){
var selection = form.content.selection.createRange();
return selection;
}
Is this the wrong function or am I doing something wrong?
Thanks
function getRange(){
var selection = form.content.selection.createRange();
return selection;
}
Is this the wrong function or am I doing something wrong?
Thanks