Select Và Copy TextArea Vào ClipBoard

Đoạn code sau đây select và copy nội dung trong textarea sau đó dán vào Notepad hoặc chương trình text editor như Word, WordPad bằng Ctrl-V.






Source Code :



Trong phần <BODY> của trang HTML chèn vào Form sau:


<form name="copyme">
<textarea name="content" cols="55" rows="15">
</textarea>
<input type="button" value="Chép vào Clipboard" onClick = "copymessage('copyme.content');">
</form>


Chúc vui vẻ





This entry was posted on 21:32 and is filed under .Follow any comments here with the RSS 2.0 . You can leave a response so that we can know your suggestion.
0 Responses to "Select Và Copy TextArea Vào ClipBoard"

Đăng nhận xét