Link Object
The Link object represents the HTML link element. The link element can only
be used within the <head> tag.
The Link object's properties and events are
described below:
N: Netscape (including Mozilla when N6 or higher), IE: Internet Explorer, W3C: World Wide Web Consortium (Internet Standard)
Properties
Syntax: object.property_name
Property |
Description |
N |
IE |
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 |
|
4 |
Yes |
href |
Sets or returns the URL of the linked resource |
2 |
4 |
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) |
|
4 |
No |
media |
|
|
- |
Yes |
name |
Sets or returns the name of the link object |
|
4 |
No |
rel |
Sets or returns the relationship between the current
document and the target URL |
|
4 |
Yes |
rev |
Sets or returns the relationship between the current
document and the target URL |
|
4 |
Yes |
target |
Sets or returns the window/frame where to open the target
URL |
2 |
4 |
Yes |
type |
Sets or returns the MIME type of the linked resource |
|
4 |
Yes |
Events
Syntax: object.event_name="someJavaScriptCode"
Event |
Description |
N |
IE |
W3C |
onLoad |
Executes some code after the browser loads the link object |
2 |
4 |
|
|