JavaScript Tutorial/Document/getSelection

Материал из Web эксперт
Версия от 11:24, 26 мая 2010; Admin (обсуждение | вклад) (1 версия)
(разн.) ← Предыдущая | Текущая версия (разн.) | Следующая → (разн.)
Перейти к: навигация, поиск

document.getSelection()

The getSelection() method returns the text that is selected within the HTML document.



   <source lang="javascript">

<html>

   <form name="Form1">
     <input type="text"
            name="TextArea">
   </form>
   <script language="JavaScript">
   
   </script>
   </html></source>