object.execCommand(sCommand [, bUserInterface] [, vValue])
sCommand Required. String that specifies the command to execute.
command can be any of the command identifiers that can
be executed in script.
bUserInterface Optional. Boolean that specifies one of the following
values.
false Default. Does not display a user interface.
true Displays a user interface, if the command supports
one.
vValue Optional. Variant that specifies the string, number, or
other value to assign. Possible values depend on
sCommand . eg
<script>
function aa()
{
document.execCommand("CreateLink");
}
</script>
<input type=button onclick=aa()>
sCommand Required. String that specifies the command to execute.
command can be any of the command identifiers that can
be executed in script.
bUserInterface Optional. Boolean that specifies one of the following
values.
false Default. Does not display a user interface.
true Displays a user interface, if the command supports
one.
vValue Optional. Variant that specifies the string, number, or
other value to assign. Possible values depend on
sCommand . eg
<script>
function aa()
{
document.execCommand("CreateLink");
}
</script>
<input type=button onclick=aa()>
解决方案 »
- 求大神帮帮忙
- Web用户控件如何引用外部js文件?
- 帮忙看一个LinQ的难题
- 请问有用过ComponentOne的C1WebGrid控件的朋友没?请教如何取得绑定列单元格值的方法
- 高人,请指教,能回答这样的问题能拿多少薪水?
- 到这里问问winform下DataGrid的问题
- “DropDownList 不能有多个项被选定。 ” 请教这是为什么!!!
- asp页面如何与asp.net页面交互???
- 求教 ftp服务器
- 我有datagrid如下,怎么控制我在按"修改"功能时,顺序列的宽度?
- 如果想在dropdownlist的DataTextField里同时显示三个字段的值,不知道该如何实现?
- 怪事,file中的OnServerChange事件怎么都不执行,请帮忙看看!
document.execCommand("insertimage",true);
.....
你可以查msdn,那里有很多参数的介绍