2
<!DOCTYPE html>
<html>
<body>
<form action=# method=post name=test>
<textarea name=numb id=numb rows=4 cols=50></textarea>
<input type=submit>
</form>
<script>
window.onload=function(){
document.getElementById("numb").value = window.clipboardData.getData('Text');
}
</script>
</body>
</html>
标题是相当多的自我explanitory ......我希望能够到剪贴板粘贴到文本区域的onload ......似乎是一个简单的任务,但由于某种原因,它不工作:/的Javascript ::粘贴剪贴板文本区域
你确定你在'text'变量中有数据吗? – Rehan