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="粘贴"/>

2

3

4

5

6

7

8

9

10

11

12

13
