ÇöÀç ¹®¼ÀÇ ¼±ÅÃµÈ ¹®ÀÚ¿À» ¹ÝȯÇÑ´Ù.
ÇʼöÀûÀÎ document ÂüÁ¶´Â ÇöÀçÀÇ ¹®¼ÀÌ´Ù.
ÆĶó¸ÞÅÍ´Â ¾ø´Ù.
¹Ýȯ°ª sValÀº ÇöÀç ¹®¼¿¡¼ ¼±ÅÃµÈ ¹®ÀÚ¿ÀÌ´Ù.
ÇöÀç ¹®¼¿¡¼ ¼±ÅÃµÈ ¹®ÀÚ¿À» ¹Ýȯ ¹Þ´Âµ¥ »ç¿ëµÈ´Ù.
´ÜÃ߸¦ Ŭ¸¯ÇÏ¸é ¸Þ½ÃÁö ¹Ú½º¿¡¼ ¼±ÅÃµÈ ¹®ÀÚ¿À» ¹ÝȯÇÏ¿© °æ°íÇÑ´Ù.
<FORM> <INPUT type="button" name="selectString" value="¼±ÅÃµÈ ¹®ÀÚ¿" onClick="alert('¼±ÅÃµÈ ¹®ÀÚ¿Àº ´ÙÀ½°ú °°´Ù.\n'+document.getSelection())"> </FORM>