i location objektet er der properties for diverse dele at sidens adresse:
http://home.netscape.com/assist/extensions.html#topic1?x=7&y=2These parts serve the following purposes:
\'http:\'
protocol represents the beginning of the URL, up to and including the first colon.
\'//home.netscape.com\'
host represents the host and domain name, or IP address, of a network host.
\'\' (bruges ikke i denne url.
port represents the communications port that the server uses for communications.
\'/assist/\'
pathname represents the URL-path portion of the URL.
hash represents an anchor name fragment in the URL, including the hash mark (#). This property applies to HTTP URLs only.
search represents any query information in the URL, including the question mark (?). The search string contains variable and value pairs; each pair is separated by an ampersand (&).
A Location object has a property for each of these parts of the URL. See the individual properties for more information. A Location object has two other properties not shown here:
href represents a complete URL.
hostname represents the concatenation host:port.
mvh JakobA