發(fā)表文章時(shí)自動保存到剪貼板
更新時(shí)間: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)文章
淺談Javascript中的12種DOM節(jié)點(diǎn)類型
DOM是javascript操作網(wǎng)頁的接口,全稱為文檔對象模型(Document Object Model)。本文將主要說明DOM節(jié)點(diǎn)類型,有需要的可以參考借鑒。2016-08-08JS實(shí)現(xiàn)數(shù)組去重及數(shù)組內(nèi)對象去重功能示例
這篇文章主要介紹了JS實(shí)現(xiàn)數(shù)組去重及數(shù)組內(nèi)對象去重功能,結(jié)合實(shí)例形式分析了ES5與ES6兩種版本針對數(shù)組去重的相關(guān)操作技巧,需要的朋友可以參考下2019-02-02微信小程序+云開發(fā)實(shí)現(xiàn)歡迎登錄注冊
這篇文章主要介紹了微信小程序+云開發(fā)實(shí)現(xiàn)歡迎登錄注冊,文中通過示例代碼介紹的非常詳細(xì),對大家的學(xué)習(xí)或者工作具有一定的參考學(xué)習(xí)價(jià)值,需要的朋友們下面隨著小編來一起學(xué)習(xí)學(xué)習(xí)吧2019-05-05JavaScript設(shè)計(jì)模式之職責(zé)鏈模式應(yīng)用示例
這篇文章主要介紹了JavaScript設(shè)計(jì)模式之職責(zé)鏈模式,結(jié)合實(shí)例形式分析了javascript責(zé)任鏈模式的概念、原理、使用方法及相關(guān)操作注意事項(xiàng),需要的朋友可以參考下2018-08-08JavaScript中實(shí)現(xiàn)PHP的打亂數(shù)組函數(shù)shuffle實(shí)例
這篇文章主要介紹了JavaScript中實(shí)現(xiàn)PHP的打亂數(shù)組函數(shù)shuffle實(shí)例,本文用2種方法實(shí)現(xiàn)了類似PHP的打亂數(shù)組函數(shù)shuffle函數(shù),需要的朋友可以參考下2014-10-10JavaScript代碼調(diào)試方法實(shí)例小結(jié)
這篇文章主要介紹了JavaScript代碼調(diào)試方法,結(jié)合實(shí)例形式總結(jié)分析了JavaScript錯誤信息的處理與代碼調(diào)試相關(guān)操作技巧,需要的朋友可以參考下2019-01-01