Input Text select() 方法

Input Text 對象參考手冊 Input Text 對象

實例

選取文本域的內容:

document.getElementById("myText").select();



定義和用法

select() 方法用於選取文本域中的內容。


流覽器支持

Internet Explorer Firefox Opera Google Chrome Safari

所有主流流覽器都支持 select() 方法 。


語法

textObject.select()

參數

None.

技術詳情

返回值: 沒有返回值


Input Text 對象參考手冊 Input Text 對象