?? 20.1 javascript操作剪貼板.htm
字號:
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<title>標題頁</title>
<script language="javascript">
function windowCopy(){
window.clipboardData.setData("Text",txt1.innerText);
}
function windowParse(){
var txt= window.clipboardData.getData("Text");
txt1.innerText=txt+"粘貼完畢"
}
</script>
</head>
<body>
<textarea cols=30 rows=10 id="txt1">
</textarea>
<table id="mytbl" width="300" height="50" border="0" cellspacing="2" cellpadding="0" bgcolor="#FFb609">
<tr>
<td> <input id="Button1" type="button" value="window剪貼板-剪切" onclick="windowCopy()" /></td>
<td> <input id="Button1" type="button" value="window剪貼板-粘貼" onclick="windowParse()" /></td>
</tr>
</table>
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -