
Link
JavaScript Pocket Reference
|
97
moveToAbsolute(x, y)
Moves the layer to a position relative to the page and returns
nothing.
resizeBy(dw, dh)
Resizes the layer by the specified amounts and returns
nothing.
resizeTo(width, height)
Resizes the layer to the specified size returns nothing.
Link
an <a> or <area> link
Client-side JavaScript 1.0
Inherits From: Element
Synopsis
document.links[i]
Properties
Many of the properties of a Link object represent portions of its
URL. For each such property below, the example given is a
portion of the following (fictitious) URL:
http://www.oreilly.com:1234/catalog/search.html
?q=JavaScript&m=10#results
hash
A read/write string property that specifies the anchor portion
of the Link’s URL, including the leading hash (
#) mark. For
example: “#result”.
host
A read/write string property that specifies the hostname and
port portions of a Link’s URL. For example: “www.oreilly.
com:1234”.
hostname
A read/write string property that specifies the hostname
portion of a Link’s URL. For example: “www.oreilly.com”.
href
A read/write string property that specifies the complete text of
the Link’s URL.