粘贴剪辑版中的数据

 1    <script language="javascript"> 
 2            function copyToClipBoard()
 3            var input = document.getElementById("input"); 
 4            var strValue =window.clipboardData.getData("text"); 
 5            
 6 
 7          
 8             input.value = strValue 
 9            
10            }
 
11</script> 
12<input type="text" id="input"/> 
13<input type="button" onclick="copyToClipBoard();"  value="粘贴"/>

posted on 2008-06-25 14:51  liuhaitao  阅读(223)  评论(0编辑  收藏  举报

导航