發(fā)表文章時自動保存到剪貼板
更新時間:2006年10月27日 00:00:00 作者:
[Ctrl+A 全選 注:引入外部Js需再刷新一下頁面才能執(zhí)行]
eWebEditor調(diào)用方法
復(fù)制代碼 代碼如下:
<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="確 定">
<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="確 定">
相關(guān)文章
JS實現(xiàn)數(shù)組去重及數(shù)組內(nèi)對象去重功能示例
這篇文章主要介紹了JS實現(xiàn)數(shù)組去重及數(shù)組內(nèi)對象去重功能,結(jié)合實例形式分析了ES5與ES6兩種版本針對數(shù)組去重的相關(guān)操作技巧,需要的朋友可以參考下2019-02-02JavaScript設(shè)計模式之職責(zé)鏈模式應(yīng)用示例
這篇文章主要介紹了JavaScript設(shè)計模式之職責(zé)鏈模式,結(jié)合實例形式分析了javascript責(zé)任鏈模式的概念、原理、使用方法及相關(guān)操作注意事項,需要的朋友可以參考下2018-08-08JavaScript中實現(xiàn)PHP的打亂數(shù)組函數(shù)shuffle實例
這篇文章主要介紹了JavaScript中實現(xiàn)PHP的打亂數(shù)組函數(shù)shuffle實例,本文用2種方法實現(xiàn)了類似PHP的打亂數(shù)組函數(shù)shuffle函數(shù),需要的朋友可以參考下2014-10-10JavaScript代碼調(diào)試方法實例小結(jié)
這篇文章主要介紹了JavaScript代碼調(diào)試方法,結(jié)合實例形式總結(jié)分析了JavaScript錯誤信息的處理與代碼調(diào)試相關(guān)操作技巧,需要的朋友可以參考下2019-01-01