
29.12.2007, 12:17
|
|
Постоянный
Регистрация: 11.03.2007
Сообщений: 581
Провел на форуме: 4172659
Репутация:
646
|
|
Код HTML:
<script>
function GetText()
{
if (!document.all && !document.all.item)
return "";
var oSelTxt = document.selection.createRange();
return oSelTxt.text;
}
</script>
<form name="forma">
<textarea name="message">Some message</textarea><br>
<input type="button" onclick="alert(GetText())" value="GO!">
</form>
Some text

|
|
|