没什么,就是document的一个方法而已,语法见内
Executes a command on the current document, current selection, or the given range.
Syntax
bSuccess = object.execCommand(sCommand [, bUserInterface] [, vValue])
Parameters
sCommand Required. String that specifies the command to execute. This 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 .
Return Value
Boolean that returns one of the following values:
true The command was successful.
false The command was not successful.
Remarks
Do not invoke the execCommand method until after the page loads.
The bUserInterface and vValue parameters may be required depending on the command being executed.
Standards Information
There is no public standard that applies to this method.
Applies To
下一篇:让文字在页面上90度,180度翻转 >>
相关文章:
- · 函数整理(变量和转换函数)
- · 函数整理(条件函数)
- · 函数整理(输入函数)
- · 函数整理(数学函数)
- · 函数整理(字符串函数)
- · 函数整理(日期和时间函数)
- · 动态伸缩ie窗口(酷)(天乐原创)
- · 利 用 ASP 在 客 户 端 注 册 DLL 文 件!
- · 我有2个类似的js,不知道有用否 1
- · 我搜集过一段类似的js,不知道有用否
- · form文本域的通用校验函数
- · 函数控制最小化窗口
- · 用DHTML来模拟实现下拉菜单
- · javascript动态增加、删除、填充表格内容。
- · 最完美的JS万年历(一)
- · 最完美的JS万年历(二)
- · 最完美的JS万年历(三)
- · 用JS定制IE工具栏按钮
- · 看看我写的.和这里样式差不多.不过一样好用哟.滑动时还有音乐.用的qq的音乐
- · 妙用VBScript自制IE工具栏按钮(转)
- · js有几个缺陷。combox1.doSelectIdx(-1)我看不用调用了。
- · 层不能跨框架(包括TEXTAREA)显示的解决办法
- · 罗亭的可输入下拉框的解密简化版.
- · IE里的探索之浏览器概览
- · IE里的探索之向标准上下文相关菜单里添加条目
- · IE里的探索之添加浏览器栏
- · IE里的探索之添加工具条按钮(2)
- · IE里的探索之添加工具条按钮(1)
- · IE里的探索之创建具有良好行为的自定义元素
- · IE里的探索之定制浏览器好助手(上1)
- · IE里的探索之定制浏览器好助手(上2)
- · IE里的探索之定制浏览器好助手(中1)
- · IE里的探索之定制浏览器好助手(下)
- · IE里的探索(想定制自己的IE的可以看一看)
- · 这个object还有其他几种用法.现在贴了给大家.
- · 自动关闭窗口,方法总结
- · 这个脚本可以使你方便得获得各网站的连接速度
- · 列表框操作函数集合
