JavaScript Tutorial/Document/getSelection — различия между версиями

Материал из Web эксперт
Перейти к: навигация, поиск
 
м (1 версия)
 
(нет различий)

Текущая версия на 11:24, 26 мая 2010

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>