WEB 编程 - DHTML - 方法
addnamespaces 集合中添加一个新的 namespace,返回一个 namespace 对象
add给一个集合新加一个子项,无返回值
addBehavior为元素附加一个行为(behavior),返回一个行为是否可用的标识符
AddChannelPresents a dialog box that enables the user to either add the channel specified, or change the channel URL if it is already installed,无返回值
AddDesktopComponent把一个网页或者一张图片添加到系统活动桌面(Microsoft® Active Desktop®),无返回值
addElementcontrolRange 集合中添加对象,无返回值
AddFavorite弹出对话框,将某个 url 添加到系统收藏夹中,无返回值
addImportAdds a style sheet to the imports collection for the specified style sheet.
addPageRule在样式表中创建一个新的 page 对象,返回 -1
addReadRequest在读取 requests 时增加一个读取队列的入口,返回一个布尔值
addRule在样式里增加一个样式属性定义,返回 -1
alert弹出一个指定内容的警告框,它常用在 DHTML 编程中调试跟踪某变量值,无返回值
appendChild在对象中添加一子元素,返回已成功添加到父对象中的子元素
appendData在对象的结束处添加一个字符串,无返回值
applyElementMakes the element either a child or parent of another element.返回已经应用的元素
assign加载一个新的 HTML 文档,无返回值
attachEvent为对象的某个事件附加处理函数,返回布尔值
AutoCompleteSaveForm将指定的表单元素值添加到系统自动完成功能的数据集中,无返回值
AutoScan尝试连接指定请求的模板定义的 Web Server,无返回值
back返回到上一访问页,无返回值
blur使当前对象失去焦点,会触发 onblur 事件,没有返回值
ChooseColorDlg打开系统调色板,返回一个 0xRRGGBB 的颜色值
clear不被普遍支持,清除当前页面中的所有元素
clear清除 selection 里的内容,无返回值
clearAttributes清除对象里的所有属性定义,无返回值
clearData清除系统剪贴板里的所有内容
clearInterval停止 setInterval 方法产生的循环,无返回值
clearRequest清除请求序列中的所有请求,无返回值
clearTimeout停止由 setTimeout 代码的延迟执行,无返回值
click模拟对象的鼠标点击,能触发 onclick 事件,无返回值
cloneNode克隆一个对象,包括它的所有属性与子元都与原对象完全相同,返回被克隆出来的新对象
close关闭当前窗口,当然也可以用来关闭模态框与HTA,无返回值
close关闭 an output stream 并强迫显示页面元素,无返回值
collapseMoves the insertion point to the beginning or end of the current range. 无返回值
compareEndPointsCompares an end point of a TextRange object with an end point of another range.
componentFromPointReturns the component located at the specified coordinates via certain events.
confirm弹出一个是/否的选择框,返回布尔值
contains判断某元素是否包含在某对象中,返回布尔值
createAttribute给指定的 name 的对象创建一个属性,返回这个属性对象
createCaption给表格(table)创建一个空的 caption 对象,返回 caption 对象
createComment把指定的文本转化成一个注释,返回这个注释 comment 对象
createControlRange创建一个不带任何文本内容的 controlRange 集合,返回这个新创建的集合
createDocumentFragment创建一个新的文档,返回这个新文档
createElement创建返回新的网页对象
createEventObject当使用 fireEvent 方法的时候产生且返回一个 event 对象
createPopup创建返回一个 popup 的顶层特殊窗口
createRangeCreates a TextRange object from the current text selection, or a controlRange collection from a control selection.
createRangeCollectionCreates a TextRange object collection from the current selection
createStyleSheet创建并返回一个新的样式表文档
createTextNode创建返回一个文本对象
createTextRangeCreates a TextRange object for the element
createTFoot在网页表格(table)中创建并返回 tfoot 对象
createTHead在网页表格(table)中创建并返回 thead 对象
deleteCaption删除表格(table)里的 caption,无返回值
deleteCell在表格行 trcells 里删除指定下标的列 td,无返回值
deleteData删除对象里的指定字符串
deleteRow删除网页表格里指定下标的某一行 tr
deleteTFoot删除表格里的 tfoot
deleteTHead删除网页表格里的 thead
detachEvent解除对象某事件里指定的函数
doImport动态地引入元素的行为 behavior
doReadRequest执行请求序列里的所有请求
doScroll模仿鼠标移动滚动条,无返回值
dragDrop发起一个拖曳事件
duplicate返回一个 TextRange 对象的副本
elementFromPoint返回处在指定 x y 坐标位置上的对象
empty放弃你在网页中的选择,无返回值
execCommand执行网页中的特定函数,函数执行成功则返回 true
execScript执行某种客户端脚本语言里的某个函数,返回值永远为 null
expand展开 range 里收缩的部分
findText在网页中选中的部分里搜索指定的文本,返回布尔值
fireEvent执行对象里指定的事件,返回执行是否成功的布尔值
firstPage显示网页表格(table)绑定数据的第一顶数据
focus将焦点聚集到指定的对象中去,它会触发 onfocus 事件,无返回值
forward跳转到网页访问历史的下一页,无返回值
getAdjacentText返回与指定的对象有指定位置关系的文本
getAttribute返回对象里指定的属性值
getAttribute返回 userProfile 对象里指定的属性值
getAttributeNode返回指定对象中的某一个具体属性(包括属性名与属性值)对象 attribute
getBookmark返回书签名
getBoundingClientRectRetrieves an object that specifies the bounds of a collection of TextRectangle objects.
getCharset返回字体名
getClientRectsRetrieves a collection of rectangles that describes the layout of the contents of an object or range within the client. Each rectangle describes a single line
getData取得系统剪贴板时的内容
getElementById返回指定 ID 的对象,这个方法在各种浏览器的高版本中都是兼容
getElementsByName返回一个在网页里有相同 name 的元素组成的集合
getElementsByTagName返回网页中所有与指定的 tagName 相同的标签名的元素,返回的是一个集合
getExpression返回对象样式中指定的样式属性表达式
getNamedItemRetrieves an attribute specified with the name property using the attributes collection
go在网页访问历史序列中跳转到指定的位置
hasChildNodes返回某对象是否拥有子元素,返回布尔值
hasFeature返回布尔值,指对象是否支持 DOM (Document Object Model)标准
hasFocus返回一个布尔值,指当前文档是否已经得到焦点
hide隐藏 popup 这个特殊的顶层窗口
ImportExportFavorites导入或导出系统收藏夹,没有返回值
inRangeReturns a value indicating whether one range is contained within another.
insertAdjacentElement在指定的位置插入指定的对象,返回这个被插入的对象
insertAdjacentHTML在指定的位置插入指定的 HTML 语句,无返回值
insertAdjacentText在指定的位置插入指定的纯文本
insertBefore在某对象之前插入一个新对象,返回这个新插入的对象
insertCell在网页表格行(tr)里插入一新列,且返回该新列
insertData在对象指定的地方插入指定的字符串
insertRow在网页表格(table)中插入新的一行 tr,返回这个新插入的行
isEqualReturns a value indicating whether the specified range is equal to the current range.
IsSubscribed返回布尔值,标志用户是否同意加入频道
Item返回系统字体集里的子项
item某对象的子元素集合(childNodes)中的一子项
itembookmarks 书签集中的子项
itemcontrolRange 集里的一子项
item返回某样式定义里的属性定义里的某个属性子项
itembehaviorUrns 集合中的一个子项
item返回对象的属性集中的某一子项
item返回滤镜集合里的一个子项
item返回集合中的一个子项
itempages 集合里的某一子项
javaEnabled返回是否能使用 Java
lastPage显示绑定在网页表格(table)中的最后一项数据,无返回值
mergeAttributes拷贝指定对象里的所有属性
Methods设置或者返回对象支持的 HTTP 方法的列表
moveCollapses the given text range and moves the empty range by the given number of units.
moveBy把窗口移到指定坐标的位置
moveEndChanges the end position of the range
moveRow移动网页表格(table)中的行
moveStartChanges the start position of the range.
moveTo移动窗口,指定了窗口左上角的坐标
moveToBookmark移动到书签处
moveToElementTextMoves the text range so that the start and end positions of the range encompass the text in the given element.
moveToPointMoves the start and end positions of the text range to the given point.
namedItem返回集合里指定 name 的子项
namedRecordsetRetrieves the recordset object corresponding to the named data member from a data source object (DSO).
navigate加载指定路径的网页
NavigateAndFindNavigates to the specified URL and selects the specified text
nextPage显示绑定在网页表格的结果集中下一面的数据
normalize合并相邻的文本生成一个DOM(Document Object Model)模式
open打开一个可定制的新窗口,返回这个新开窗口的引用
parentElement返回当前操作的对象的父元素
pasteHTML在指定的文本处粘贴 HTML 文本
previousPage显示绑定在网页表格中的结果集的上一页数据
print打印网页,没有返回值
prompt网页中的弹出式输入框
queryCommandEnabledReturns a Boolean value that indicates whether a specified command can be successfully executed using execCommand, given the current state of the document
queryCommandIndetermReturns a Boolean value that indicates whether the specified command is in the indeterminate state.
queryCommandStateReturns a Boolean value that indicates the current state of the command
queryCommandSupportedReturns a Boolean value that indicates whether the current command is supported on the current range
queryCommandValueReturns the current value of the document, range, or current selection for the given command
recalc重新加载当前对象里的所有动态属性
refresh刷新网页表格,通常调用在比如调用 removeRule 方法之后,没有返回值
releaseCapture取消鼠标与对象之间的绑定
reload重载当前网页,没有返回值
remove从集合里移除一子项,无返回值
removeAttribute移除对象的某项属性设置,返回是否成功移除的布尔值
removeAttributeNode移除对象里的某项属性,返回被移除的该属性
removeBehavior移除某元素的特为 behavior,返回是否成功移除的布尔值
removeChild移除对象的一个子元素,返回被移除的对象
removeExpression移除样式中的属性表达式设置
removeNamedItem移除属性集(attributes)中的某个属性并返回该被移除的属性
removeNode从文档中彻底移除某个对象,返回该被移除的对象
removeRule移除样式表中的某项样式定义,无返回值
replace装载另一文档替换当前文档,与其它重载方法不同的是它会把 window.history 也清空
replaceAdjacentText与对象有指定位置关系的文本替换掉,返回被替换成的老文本
replaceChild替换一现有的子项,返回被替换的子项
replaceData替换指定文本对象成新的文本,无返回值
replaceNode将对象本身替换成另一对象,返回被替换掉了的老对象
reset表单里的所有表单元素重置,没有返回值
resizeTo指定窗口大小
scroll将网页中的滚动条滚动到设定位置
scrollBy将网页中的滚动条滚动一定的量值
scrollIntoView滚动网页直接该对象可以被看到为止
scrollTo网页滚动条滚动到指定的从标值
select选中文本域或按钮
selectMakes the selection equal to the current object
setActive将对象设置为活动对象,但不设置焦点
setAttribute设置对象的某属性值,无返回值
setAttributeNode设置对象里的部分属性节点,返回被设值的该属性
setCapture将鼠标与某对象进行绑定
setData将数据存入系统剪贴板,返回是否成功存入
setEndPointSets the endpoint of one range based on the endpoint of another range
setExpression设置对象里某样式属性的表达式
setInterval循环不断地执行指定的代码,返回这个循环的句柄,可用 clearInterval(句柄) 结束循环
setNamedItem在属性集(attribute)中新加一项属性设置
setTimeout延迟执行某段代码,返回一个句柄,可用 clearTimeout(句柄) 结束这个延迟
show特殊顶层窗口 popup 的显示控制方法,无返回值
ShowBrowserUI打开一个指定的浏览器设置窗口
showHelp打开网页帮助文档
showModalDialog打开一个网页对话框:模态框
showModelessDialog打开网页对话框:非模态框
splitText按指定的索引分割文本节点,并返回文本节点
start滚动字幕(marquee)开始运行,无返回值
stop停止滚动字幕(marquee)的运行,无返回值
submit提交表单,无返回值
substringData在对象中截取一段文本
swapNode交换两个对象所处的位置
tags返回一个拥有 HTML 标签名(tag)的元素集合
taintEnabledReturns whether data tainting is enabled
urns返回一个已经附加指定行为(behavior)的元素集合
write在指定的窗口里写入一行或多行 HTML 的文本
writeln在指定的窗口里写入一行 HTML 文本,后面会自动附带着一个回车符