首页 > 编程 > JavaScript > 正文

发表文章时自动保存到剪贴板

2019-11-21 02:29:00
字体:
来源:转载
供稿:网友


[Ctrl+A 全选 注:如需引入外部Js需刷新才能执行]

eWebEditor调用方法
复制代码 代码如下:
<input type="hidden" value="" name="NewsContent" > 
        <iframe name="eWebEditor" ID="eWebEditor" src="eWebEditor/eWebEditor.asp?Id=NewsContent" frameborder="0" scrolling="no" width="100%" HEIGHT="100%"></iframe> 
<script type="text/javascript"> 
function submitcontent() { 
window.clipboardData.setData('Text',frames.eWebEditor.document.body.innerHTML); 

</script>
<input  type="submit"  onclick="submitcontent();" value="确 定">

发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表