发表文章时自动保存到剪贴板
摘要:[Ctrl+A全选注:如需引入外部Js需刷新才能执行]eWebEditor调用方法复制代码代码如下:functionsubmitconten...
[Ctrl+A 全选 注:如需引入外部Js需刷新才能执行]
eWebEditor调用方法
复制代码 代码如下:<inputtype="hidden"value=""name="NewsContent">
<iframename="eWebEditor"ID="eWebEditor"src="eWebEditor/eWebEditor.asp?Id=NewsContent"frameborder="0"scrolling="no"width="100%"HEIGHT="100%"></iframe>
<scripttype="text/javascript">
functionsubmitcontent(){
window.clipboardData.setData('Text',frames.eWebEditor.document.body.innerHTML);
}
</script>
<inputtype="submit"onclick="submitcontent();"value="确定">
【发表文章时自动保存到剪贴板】相关文章:
★ JavaScript中的setUTCDate()方法使用详解
★ JavaScript中用于生成随机数的Math.random()方法
★ CSS+JS实现点击文字弹出定时自动关闭DIV层菜单的方法
★ 让焦点自动跳转
上一篇:
使javascript也能包含文件
下一篇:
取得传值的函数