当前位置: 首页 > 网络学院 > 客户端脚本教程 > HTML DOM > DOM Link 对象

HTML DOM
DOM Input Checkbox
DOM Input File 对象
DOM Input Hidden对象
DOM Input Password 对象
DOM Input Radio 对象
DOM Input Reset 对象
DOM Input Submit 对象
DOM Input Text 对象
DOM Link 对象
DOM Location 对象
DOM Meta 对象
DOM Navigator 对象
DOM 对象
DOM Option 对象
DOM Screen 对象
DOM Select 对象
DOM Style 对象
DOM Table 对象
DOM TableData 对象
DOM TableHeader 对象

HTML DOM 中的 DOM Link 对象


出处:互联网   整理: 软晨网(RuanChen.com)   发布: 2009-03-01   浏览: 824 ::
收藏到网摘: n/a

Link 对象

The Link object represents an HTML link element. The link element can only be used within the <head> tag.
Link对象代表HTML中的link元素。link元素只能在<head>标签中使用

IE: Internet Explorer, F: Firefox, N: Netscape, W3C: World Wide Web Consortium (Internet Standard).

Link 对象属性

Property
属性
Description
描述
IE F N W3C
charset Sets or returns the character set of the linked resource
设置或返回被连资源的字符集。
4     Yes
disabled Sets or returns whether or not the link object should be disabled
设置或返回link对象是否为禁用
4     Yes
href Sets or returns the URL of the linked resource
设置或返回被连资源的URL
4 1 2 Yes
hreflang Sets or returns the language code of the linked resource
设置或返回被连资源的语言代码
4     Yes
id Sets or returns the id of the link (In IE 4 this property is read-only)
设置或返回link的id(在IE4中这个属性为只读)
4 1   No
media   -     Yes
name Sets or returns the name of the link object
设置或返回link对象的name
4     No
rel Sets or returns the relationship between the current document and the target URL
设置或返回当前文档与目标URL之间的关联
4     Yes
rev Sets or returns the relationship between the current document and the target URL
设置或返回当前文档与目标URL之间的关联
4     Yes
target Sets or returns the window/frame where to open the target URL
设置或返回打开目标URL的方式
4 1 2 Yes
type Sets or returns the MIME type of the linked resource
设置或返回被连资源的MIME类型
4     Yes

Link 对象事件

Syntax: object.event_name="someJavaScriptCode"
语法:对象.事件名称=“一些JS代码”

Event
事件
Description
描述
IE F N W3C
onLoad Executes some code after the browser loads the link object
在浏览器加载link对象后执行一些代码
4 1 2  

评论 (0) All

登陆 | 还没注册?