Schlaumachen z.B. hier=>
http://users.ox.ac.uk/~pault/netwedit/example.htm
Die Lösung:
function suchText(){
if (document.getSelection) {
SelecText=document.getSelection();
} else if (document.selection && document.selection.createRange) {
var range = document.selection.createRange();
var SelecText = range.text;
} else {
var SelecText = ""; Alert('Sorry, this is not possible with your browser');
}
alert(SelecText);
}
</script>
Grüße Zwomble