{IHTMLDocument2 方法:}write //写入writeln //写入并换行open //打开一个流,以收集 document.write 或 document.writeln 的输出close //关闭并输出用 document.open 方法打开的流clear //清空文档中所有元素, 可能暂时不支持queryCommandSupported //是否支持指定命令queryCommandEnabled //指定命令是否有效queryCommandState //是否设置了指定命令queryCommandIndeterm //指定命令是否处于不确定状态queryCommandText //命令queryCommandValue //命令值execCommand //执行命令execCommandShowHelp //命令帮助信息createElement //建立元素elementFromPoint //指定坐标下的元素createStyleSheet //创建一个样式表
{IHTMLDocument2 属性:}all //所有 HTML 元素的集合images //所有 image 对象的集合applets //所有 applet 对象的集合links //所有 link 对象的集合forms //所有 form 对象的集合anchors //所有 anchor 对象的集合scripts //所有 script 对象的集合frames //所有 frame 对象的集合, 这应该和 window.frames 是一样的embeds //所有 embed 对象的集合plugins //所有 plugin 对象的集合styleSheets //样式表集合title //网页标题body //body 对象activeElement //当前具有输入焦点的元素designMode //设计模式, 可选值: Inherit On Offselection //当前选择readyState //页面读取状态: uninitialized、loading、loaded、interactive、completedlinkColor //链接的颜色alinkColor //活动链接的颜色vlinkColor //已访问过的链接的颜色bgColor //背景颜色fgColor //文本颜色referrer //返回载入当前页面的页面的 URLlocation //同 window.locationlastModified //返回文档最后修改的日期和时间url //返回当前文档的 URLdomain //返回域名cookie //返回文档相关的 cookieexpando //可设置与获取的布尔值, 是否允许扩展charset //获取文档的字符集名称defaultCharset //获取浏览器默认的字符集名称mimeType //文档类型fileSize //文档大小, 单位字节, 用字符串表示fileCreatedDate //文档建立时间 ???fileModifiedDate //文档修改时间 ???fileUpdatedDate //文档更新时间 ???security //文档安全protocol //传输协议nameProp //文件标题, 好像同 TitleparentWindow //父窗口Script //
{IHTMLDocument2 事件:}onhelp //用 F1 获取帮助时onclick //单击时ondblclick //双击时onmousedown //鼠标点下时onmouseup //鼠标抬起时onmousemove //鼠标移动时onmouseover //鼠标进入时onmouseout //鼠标离开时onkeypress //按键时onkeyup //键按住时onkeydown //键抬起时onreadystatechange //状态改变时onrowexit //当前数据源的数据将要发生变化时onrowenter //当前数据源的数据发生变化并且有新的数据时ondragstart //开始拖动时onselectstart //开始选择时onbeforeupdate //更新前onafterupdate //更新后onerrorupdate //更新错误时
{IHTMLDocument3 方法:}recalc //重新获取文档中的全部动态属性releaseCapture //释放文档中对象的鼠标捕捉
{IHTMLDocument3 属性:}createTextNode //建立文本attachEvent //绑定事件detachEvent //取消事件绑定createDocumentFragment//创建新文档getElementsByName //返回带有指定 name 的对象集合getElementById //返回指定 id 的第一个对象的引用getElementsByTagName //返回指定标签的对象集合documentElement //获取文档根部节点, 也就是 HTML 节点uniqueID //获取对象的唯一标识符dir //parentDocument //enableDownloadbaseUrl //基础地址
{IHTMLDocument3 事件:}onrowsdelete //当前数据记录被删除时onrowsinserted //当前数据源将要插入新数据时oncellchange //当数据来源发生变化时ondatasetchanged //数据源发生变化时ondataavailable //当数据接收完成时ondatasetcomplete //当数据源的全部有效数据读取完毕时onpropertychange //改变属性时oncontextmenu //当按下鼠标右键出现菜单或通过键盘触发页面菜单时onstop //停止或离开时
{IHTMLDocument4 方法:}focus //获得输入焦点hasFocus //是否拥有输入焦点createDocumentFromUrl //下载指定网页并返回其 IHTMLDocument2 接口CreateEventObject //生成当使用 fireEvent 方法时用于传递事件相关信息的 event 对象 ???FireEvent
{IHTMLDocument4 属性:}createRenderStyle //建立 IHTMLRenderStyle 接口namespaces //media //URLUnencoded //获取去除字符编码的 URL
{IHTMLDocument4 事件:}onselectionchange //改变选择时oncontrolselect //好像是框选时
{IHTMLDocument5 方法:}createAttribute //建立指定 name 的属性createComment //建立注释
{IHTMLDocument5 属性:}doctype //文档类型implementation_ //获取 IHTMLDOMImplementation 接口compatMode //兼容模式, 返回 BackCompat、CSS1Compat 等
{IHTMLDocument5 事件:}onmousewheel //旋转鼠标滚动轮时onfocusin //获取输入焦点时onfocusout //失去输入焦点时onactivate //激活时ondeactivate //当前对象变为父文档的其他对象时onbeforeactivate //onactivate 前onbeforedeactivate //ondeactivate 前