<input type=button value=剪切 onclick=document.execCommand('Cut')>
 2Document.ExecCommand<input type=button value=拷贝 onclick=document.execCommand('Copy')>
 3Document.ExecCommand<input type=button value=粘贴 onclick=document.execCommand('Paste')>
 4Document.ExecCommand<input type=button value=撤消 onclick=document.execCommand('Undo')>
 5Document.ExecCommand<input type=button value=重做 onclick=document.execCommand('Redo') id=button2 name=button2>
 6Document.ExecCommand<input>
 7Document.ExecCommand<input type=button value=删除 onclick=document.execCommand('Delete')>
 8Document.ExecCommand<input type=button value=黑体 onclick=document.execCommand('Bold')>
 9Document.ExecCommand<input type=button value=斜体 onclick=document.execCommand('Italic')>
10Document.ExecCommand<input type=button value=下划线 onclick=document.execCommand('Underline')>
11Document.ExecCommand<input type=button value=停止 onclick=document.execCommand('stop')>
12Document.ExecCommand<input type=button value=保存 onclick=document.execCommand('SaveAs')>
13Document.ExecCommand<input type=button value=另存为 onclick=document.execCommand('Saveas',false,'c:\\test.htm')>
14Document.ExecCommand<input type=button value=字体 onclick=document.execCommand('FontName',false,fn)>
15Document.ExecCommand<input type=button value=字体大小 onclick=document.execCommand('FontSize',false,fs)>
16Document.ExecCommand<input type=button value=刷新 onclick=document.execCommand('refresh',false,0)> 
17Document.ExecCommand
18Document.ExecCommand另外一些用法(参数1)
19Document.ExecCommand
20Document.ExecCommand2D-Position 允许通过拖曳移动绝对定位的对象。 
21Document.ExecCommandAbsolutePosition 设定元素的 position 属性为“absolute”(绝对)。 
22Document.ExecCommandBackColor 设置或获取当前选中区的背景颜色。 
23Document.ExecCommandBlockDirLTR 目前尚未支持。 
24Document.ExecCommandBlockDirRTL 目前尚未支持。 
25Document.ExecCommandBold 切换当前选中区的粗体显示与否。 
26Document.ExecCommandBrowseMode 目前尚未支持。 
27Document.ExecCommandCopy 将当前选中区复制到剪贴板。 
28Document.ExecCommandCreateBookmark 创建一个书签锚或获取当前选中区或插入点的书签锚的名称。 
29Document.ExecCommandCreateLink 在当前选中区上插入超级链接,或显示一个对话框允许用户指定要为当前选中区插入的超级链接的 URL。 
30Document.ExecCommandCut 将当前选中区复制到剪贴板并删除之。 
31Document.ExecCommandDelete 删除当前选中区。 
32Document.ExecCommandDirLTR 目前尚未支持。 
33Document.ExecCommandDirRTL 目前尚未支持。 
34Document.ExecCommandEditMode 目前尚未支持。 
35Document.ExecCommandFontName 设置或获取当前选中区的字体。 
36Document.ExecCommandFontSize 设置或获取当前选中区的字体大小。 
37Document.ExecCommandForeColor 设置或获取当前选中区的前景(文本)颜色。 
38Document.ExecCommandFormatBlock 设置当前块格式化标签。 
39Document.ExecCommandIndent 增加选中文本的缩进。 
40Document.ExecCommandInlineDirLTR 目前尚未支持。 
41Document.ExecCommandInlineDirRTL 目前尚未支持。 
42Document.ExecCommandInsertButton 用按钮控件覆盖当前选中区。 
43Document.ExecCommandInsertFieldset 用方框覆盖当前选中区。 
44Document.ExecCommandInsertHorizontalRule 用水平线覆盖当前选中区。 
45Document.ExecCommandInsertIFrame 用内嵌框架覆盖当前选中区。 
46Document.ExecCommandInsertImage 用图像覆盖当前选中区。 
47Document.ExecCommandInsertInputButton 用按钮控件覆盖当前选中区。 
48Document.ExecCommandInsertInputCheckbox 用复选框控件覆盖当前选中区。 
49Document.ExecCommandInsertInputFileUpload 用文件上载控件覆盖当前选中区。 
50Document.ExecCommandInsertInputHidden 插入隐藏控件覆盖当前选中区。 
51Document.ExecCommandInsertInputImage 用图像控件覆盖当前选中区。 
52Document.ExecCommandInsertInputPassword 用密码控件覆盖当前选中区。 
53Document.ExecCommandInsertInputRadio 用单选钮控件覆盖当前选中区。 
54Document.ExecCommandInsertInputReset 用重置控件覆盖当前选中区。 
55Document.ExecCommandInsertInputSubmit 用提交控件覆盖当前选中区。 
56Document.ExecCommandInsertInputText 用文本控件覆盖当前选中区。 
57Document.ExecCommandInsertMarquee 用空字幕覆盖当前选中区。 
58Document.ExecCommandInsertOrderedList 切换当前选中区是编号列表还是常规格式化块。 
59Document.ExecCommandInsertParagraph 用换行覆盖当前选中区。 
60Document.ExecCommandInsertSelectDropdown 用下拉框控件覆盖当前选中区。 
61Document.ExecCommandInsertSelectListbox 用列表框控件覆盖当前选中区。 
62Document.ExecCommandInsertTextArea 用多行文本输入控件覆盖当前选中区。 
63Document.ExecCommandInsertUnorderedList 切换当前选中区是项目符号列表还是常规格式化块。 
64Document.ExecCommandItalic 切换当前选中区斜体显示与否。 
65Document.ExecCommandJustifyCenter 将当前选中区在所在格式化块置中。 
66Document.ExecCommandJustifyFull 目前尚未支持。 
67Document.ExecCommandJustifyLeft 将当前选中区所在格式化块左对齐。 
68Document.ExecCommandJustifyNone 目前尚未支持。 
69Document.ExecCommandJustifyRight 将当前选中区所在格式化块右对齐。 
70Document.ExecCommandLiveResize 迫使 MSHTML 编辑器在缩放或移动过程中持续更新元素外观,而不是只在移动或缩放完成后更新。 
71Document.ExecCommandMultipleSelection 允许当用户按住 Shift 或 Ctrl 键时一次选中多于一个站点可选元素。 
72Document.ExecCommandOpen 打开。 
73Document.ExecCommandOutdent 减少选中区所在格式化块的缩进。 
74Document.ExecCommandOverWrite 切换文本状态的插入和覆盖。 
75Document.ExecCommandPaste 用剪贴板内容覆盖当前选中区。 
76Document.ExecCommandPlayImage 目前尚未支持。 
77Document.ExecCommandPrint 打开打印对话框以便用户可以打印当前页。 
78Document.ExecCommandRedo 重做。 
79Document.ExecCommandRefresh 刷新当前文档。 
80Document.ExecCommandRemoveFormat 从当前选中区中删除格式化标签。 
81Document.ExecCommandRemoveParaFormat 目前尚未支持。 
82Document.ExecCommandSaveAs 将当前 Web 页面保存为文件。 
83Document.ExecCommandSelectAll 选中整个文档。 
84Document.ExecCommandSizeToControl 目前尚未支持。 
85Document.ExecCommandSizeToControlHeight 目前尚未支持。 
86Document.ExecCommandSizeToControlWidth 目前尚未支持。 
87Document.ExecCommandStop 停止。 
88Document.ExecCommandStopImage 目前尚未支持。 
89Document.ExecCommandStrikeThrough 目前尚未支持。 
90Document.ExecCommandSubscript 目前尚未支持。 
91Document.ExecCommandSuperscript 目前尚未支持。 
92Document.ExecCommandUnBookmark 从当前选中区中删除全部书签。 
93Document.ExecCommandUnderline 切换当前选中区的下划线显示与否。 
94Document.ExecCommandUndo 撤消。 
95Document.ExecCommandUnlink 从当前选中区中删除全部超级链接。 
96Document.ExecCommandUnselect 清除当前选中区的选中状态。
97

相关文章: