<!DOCTYPE html>
<HTML><HEAD><TITLE>Текст выделенный курсором дублируется в форме</TITLE>
<META http-equiv="Content-Type" content="text/html; charset=windows-1251">
<Style>
A:Link{ Color: #000000; Text-decoration: underline}
A:Visited{ Color: #000000; Text-decoration: underline}
A:Hover{ Color: #000000; Text-decoration: none}
td, body {font-family: verdana, arial, helvetica; font-size:11px;}
</Style>
<script type="text/javascript">
function selector() {
if (document.getSelection) {
var str = document.getSelection();
document.myForm.myArea.value = str;
}
if (document.selection) {
var str = document.selection.createRange();
document.myForm.myArea.value = str.text;
}
}
if (window.Event) {
document.captureEvents(Event.MOUSEUP);
}
document.onmouseup = selector;
</SCRIPT>
</HEAD><BODY><CENTER> <TABLE border=0 cellPadding=2 cellSpacing=2><TR><TD width="60%"><B>Попробуйте выделить мышью часть текста.</B> <BR></TD><TD vAlign=top width="40%"><FORM name=myForm>
<TEXTAREA cols=40 name=myArea rows=10>