please dont rip this site

JavaScript: The Definitive Guide

Previous Chapter 21
JavaScript Reference
Next
 

URL Object

Name

URL Object---a Universal Resource Locator

Availability

Navigator 2.0, Internet Explorer 3.0

Synopsis

window.location
document.links[i]

Properties

hash

A read/write string that specifies the hash portion of the URL, including the leading hash (#) mark. This portion specifies the name of an anchor within the object referred to by the URL.

host

A read/write string that specifies the combination of the hostname and port portions of the URL.

hostname

A read/write string that specifies the hostname portion of the URL.

href

A read/write string that specifies the complete URL.

pathname

A read/write string that specifies the path portion of the URL.

port

A read/write string that specifies the port portion of the URL.

protocol

A read/write string that specifies the protocol portion of the URL, including the trailing colon.

search

A read/write string that specifies the search or query portion of the URL, including the leading question mark.

Description

The URL object represents a URL--the location of an object on the Web. The various properties of the URL object are strings that contain various portions of the URL, such as the protocol, the hostname, and the query string.

The Area, Link, and Location objects are kinds of URL objects--they contain all of the properties of the URL object, plus additional properties of their own. URL objects cannot be used on their own, but may be used through the Link and Area objects in the Document.links[] array and the Location object referred to by the Window.location property.

See Also

"Area", "Link", "Location"


Previous Home Next
untaint() Book Index URL.hash

HTML: The Definitive Guide CGI Programming JavaScript: The Definitive Guide Programming Perl WebMaster in a Nutshell

file: /Techref/language/java/SCRIPT/definitive/refp_418.htm, 6KB, , updated: 2019/10/14 15:00, local time: 2024/11/25 10:45,
TOP NEW HELP FIND: 
3.144.8.79:LOG IN

 ©2024 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions?
Please DO link to this page! Digg it! / MAKE!

<A HREF="http://ecomorder.com/techref/language/java/SCRIPT/definitive/refp_418.htm"> [Chapter 21] Reference: URL</A>

After you find an appropriate page, you are invited to your to this massmind site! (posts will be visible only to you before review) Just type a nice message (short messages are blocked as spam) in the box and press the Post button. (HTML welcomed, but not the <A tag: Instead, use the link box to link to another page. A tutorial is available Members can login to post directly, become page editors, and be credited for their posts.


Link? Put it here: 
if you want a response, please enter your email address: 
Attn spammers: All posts are reviewed before being made visible to anyone other than the poster.
Did you find what you needed?

 

Welcome to ecomorder.com!

 

Welcome to ecomorder.com!

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

  .