การคัดลอกรหัสมีดังนี้:
<script>
ฟังก์ชั่น doit () {
newt = document.selection.createrange ()
ClipboardData.SetData ("ข้อความ", Newt.Text)
if (clipboardData.getData ("text")! = null) {
document.all.pp.value = clipboarddata.getData ("ข้อความ")
-
-
</script>
<span id = ww onmouseup = doit ()>
การเพิ่มอาจเกิดการเปลี่ยนแปลง
คำแนะนำจากผู้เชี่ยวชาญรวมถึงการเรียงลำดับ
<table>
<tr>
<td> ทดสอบ </td>
<td> อะไร </td>
</tr>
</table>
</span>
<textarea name = pp> </textarea>