惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Simon Willison's Weblog
Simon Willison's Weblog
P
Privacy International News Feed
www.infosecurity-magazine.com
www.infosecurity-magazine.com
T
Troy Hunt's Blog
Hacker News - Newest:
Hacker News - Newest: "LLM"
Attack and Defense Labs
Attack and Defense Labs
S
Secure Thoughts
V2EX - 技术
V2EX - 技术
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
O
OpenAI News
Cloudbric
Cloudbric
Google Online Security Blog
Google Online Security Blog
Schneier on Security
Schneier on Security
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
Help Net Security
Help Net Security
Cyberwarzone
Cyberwarzone
G
GRAHAM CLULEY
L
Lohrmann on Cybersecurity
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
Spread Privacy
Spread Privacy
NISL@THU
NISL@THU
N
News and Events Feed by Topic
T
Tenable Blog
S
Security @ Cisco Blogs
N
News and Events Feed by Topic
The Hacker News
The Hacker News
C
CXSECURITY Database RSS Feed - CXSecurity.com
宝玉的分享
宝玉的分享
月光博客
月光博客
酷 壳 – CoolShell
酷 壳 – CoolShell
美团技术团队
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Google DeepMind News
Google DeepMind News
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
T
Tailwind CSS Blog
V
Visual Studio Blog
P
Proofpoint News Feed
Webroot Blog
Webroot Blog
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
博客园 - 三生石上(FineUI控件)
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
Jina AI
Jina AI
雷峰网
雷峰网
T
The Blog of Author Tim Ferriss
Hugging Face - Blog
Hugging Face - Blog
腾讯CDC
L
LangChain Blog
The Register - Security
The Register - Security
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
博客园 - 聂微东

博客园 - 爱在戏院前

Unity的shader学习2 Unity的shader学习1 我的webgame戰鬥回放 gvim小操作 - 爱在戏院前 - 博客园 gvim2笔记 gvim笔记 如何保证网站的稳定性 开源了,开放我的仿ext控件集 122个常见问题收集整理(FLASH初学者参见) MYSQL性能优化(转) http协议全解释 Meta标签全解释 - 爱在戏院前 - 博客园 个人js作品集,仿ext风格(改) JavaScript容易犯错的九个陷阱 科学利用时间,为了有效的生活 Javascript文档生成 Sqlite使用说明 表单Input的高级限制级用法 用JavaScript实现MD5,SHA1加密
document.execcommand方法
爱在戏院前 · 2008-10-05 · via 博客园 - 爱在戏院前

 1<input type=button value=剪切 onclick=document.execCommand('Cut')>
 2<input type=button value=拷贝 onclick=document.execCommand('Copy')>
 3<input type=button value=粘贴 onclick=document.execCommand('Paste')>
 4<input type=button value=撤消 onclick=document.execCommand('Undo')>
 5<input type=button value=重做 onclick=document.execCommand('Redo') id=button2 name=button2>
 6<input>
 7<input type=button value=删除 onclick=document.execCommand('Delete')>
 8<input type=button value=黑体 onclick=document.execCommand('Bold')>
 9<input type=button value=斜体 onclick=document.execCommand('Italic')>
10<input type=button value=下划线 onclick=document.execCommand('Underline')>
11<input type=button value=停止 onclick=document.execCommand('stop')>
12<input type=button value=保存 onclick=document.execCommand('SaveAs')>
13<input type=button value=另存为 onclick=document.execCommand('Saveas',false,'c:\\test.htm')>
14<input type=button value=字体 onclick=document.execCommand('FontName',false,fn)>
15<input type=button value=字体大小 onclick=document.execCommand('FontSize',false,fs)>
16<input type=button value=刷新 onclick=document.execCommand('refresh',false,0)> 
17
18另外一些用法(参数1)
19
202D-Position 允许通过拖曳移动绝对定位的对象。 
21AbsolutePosition 设定元素的 position 属性为“absolute”(绝对)。 
22BackColor 设置或获取当前选中区的背景颜色。 
23BlockDirLTR 目前尚未支持。 
24BlockDirRTL 目前尚未支持。 
25Bold 切换当前选中区的粗体显示与否。 
26BrowseMode 目前尚未支持。 
27Copy 将当前选中区复制到剪贴板。 
28CreateBookmark 创建一个书签锚或获取当前选中区或插入点的书签锚的名称。 
29CreateLink 在当前选中区上插入超级链接,或显示一个对话框允许用户指定要为当前选中区插入的超级链接的 URL。 
30Cut 将当前选中区复制到剪贴板并删除之。 
31Delete 删除当前选中区。 
32DirLTR 目前尚未支持。 
33DirRTL 目前尚未支持。 
34EditMode 目前尚未支持。 
35FontName 设置或获取当前选中区的字体。 
36FontSize 设置或获取当前选中区的字体大小。 
37ForeColor 设置或获取当前选中区的前景(文本)颜色。 
38FormatBlock 设置当前块格式化标签。 
39Indent 增加选中文本的缩进。 
40InlineDirLTR 目前尚未支持。 
41InlineDirRTL 目前尚未支持。 
42InsertButton 用按钮控件覆盖当前选中区。 
43InsertFieldset 用方框覆盖当前选中区。 
44InsertHorizontalRule 用水平线覆盖当前选中区。 
45InsertIFrame 用内嵌框架覆盖当前选中区。 
46InsertImage 用图像覆盖当前选中区。 
47InsertInputButton 用按钮控件覆盖当前选中区。 
48InsertInputCheckbox 用复选框控件覆盖当前选中区。 
49InsertInputFileUpload 用文件上载控件覆盖当前选中区。 
50InsertInputHidden 插入隐藏控件覆盖当前选中区。 
51InsertInputImage 用图像控件覆盖当前选中区。 
52InsertInputPassword 用密码控件覆盖当前选中区。 
53InsertInputRadio 用单选钮控件覆盖当前选中区。 
54InsertInputReset 用重置控件覆盖当前选中区。 
55InsertInputSubmit 用提交控件覆盖当前选中区。 
56InsertInputText 用文本控件覆盖当前选中区。 
57InsertMarquee 用空字幕覆盖当前选中区。 
58InsertOrderedList 切换当前选中区是编号列表还是常规格式化块。 
59InsertParagraph 用换行覆盖当前选中区。 
60InsertSelectDropdown 用下拉框控件覆盖当前选中区。 
61InsertSelectListbox 用列表框控件覆盖当前选中区。 
62InsertTextArea 用多行文本输入控件覆盖当前选中区。 
63InsertUnorderedList 切换当前选中区是项目符号列表还是常规格式化块。 
64Italic 切换当前选中区斜体显示与否。 
65JustifyCenter 将当前选中区在所在格式化块置中。 
66JustifyFull 目前尚未支持。 
67JustifyLeft 将当前选中区所在格式化块左对齐。 
68JustifyNone 目前尚未支持。 
69JustifyRight 将当前选中区所在格式化块右对齐。 
70LiveResize 迫使 MSHTML 编辑器在缩放或移动过程中持续更新元素外观,而不是只在移动或缩放完成后更新。 
71MultipleSelection 允许当用户按住 Shift 或 Ctrl 键时一次选中多于一个站点可选元素。 
72Open 打开。 
73Outdent 减少选中区所在格式化块的缩进。 
74OverWrite 切换文本状态的插入和覆盖。 
75Paste 用剪贴板内容覆盖当前选中区。 
76PlayImage 目前尚未支持。 
77Print 打开打印对话框以便用户可以打印当前页。 
78Redo 重做。 
79Refresh 刷新当前文档。 
80RemoveFormat 从当前选中区中删除格式化标签。 
81RemoveParaFormat 目前尚未支持。 
82SaveAs 将当前 Web 页面保存为文件。 
83SelectAll 选中整个文档。 
84SizeToControl 目前尚未支持。 
85SizeToControlHeight 目前尚未支持。 
86SizeToControlWidth 目前尚未支持。 
87Stop 停止。 
88StopImage 目前尚未支持。 
89StrikeThrough 目前尚未支持。 
90Subscript 目前尚未支持。 
91Superscript 目前尚未支持。 
92UnBookmark 从当前选中区中删除全部书签。 
93Underline 切换当前选中区的下划线显示与否。 
94Undo 撤消。 
95Unlink 从当前选中区中删除全部超级链接。 
96Unselect 清除当前选中区的选中状态。
97
98

document.execCommand(”BackgroundImageCache”, false, true);

这样就能不缓存背景图