<INPUT TYPE="button" value="将剪切板内容输出到编辑器中" onclick="PastClipboardData()"><BR>
<iframe id="editor" src="about:blank"></iframe>
<SCRIPT LANGUAGE="JavaScript">
<!--
function PastClipboardData()
{
editor.document.designMode = 'On';
editor.document.write("<body></body>");
editor.focus();
editor.document.execCommand("paste","",null);}
//-->
</SCRIPT>
<iframe id="editor" src="about:blank"></iframe>
<SCRIPT LANGUAGE="JavaScript">
<!--
function PastClipboardData()
{
editor.document.designMode = 'On';
editor.document.write("<body></body>");
editor.focus();
editor.document.execCommand("paste","",null);}
//-->
</SCRIPT>
解决方案 »
- extjs 为什么这个方法会产生两条相同的记录?
- 高分求助预加载图片的问题
- 如何在同一个页面内跳转?
- ff下文本编辑器不能用
- 如何获得汉字的发音
- 事件处理函数为啥不起作用?
- 请问:两个select怎么才能点击按钮让第一个select中选中的值,写入第二个select中
- 大问题?谢谢!!!
- 大家帮我看看这段javascript的代码是怎么错了,怎么就是不对呢?????
- 请告诉我怎样才能在一个网页里面,通过设定链接的target值使它在指定的iframe里面打开.
- 关于js的push问题
- JS代码嵌在网页中能正常显示,以<script src="ABC.js"></script>调用就不能正确显示了呢??
http://community.csdn.net/Expert/TopicView3.asp?id=4942617
回复:lantersen(蓝水仁--如果你认为自己是一条大鱼,就请到大海里畅游!~) 这个方法是将客户端图片显示而已,并没有涉及到剪切板。