JavaScript: The Definitive Guide

Previous Chapter 21
JavaScript Reference
Next
 

URL.protocol Property

Name

URL.protocol Property---the protocol portion of a URL

Availability

Navigator 2.0, Internet Explorer 3.0

Synopsis

URL.protocol

Description

protocol is a read/write string property of the Location and the Link objects. It specifies the protocol portion of a URL, including the trailing colon. For example, the protocol of the following (fictitious) location is "http:"

http://www.ora.com:1234/catalog/search.html?JavaScript#result

See Also

"Area", "Document.links[]", "Link", "URL", "Window.location"


Previous Home Next
URL.port Book Index URL.search

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