[Chapter 21] Reference: URL.protocol
Author: David Flanagan
Date: Fri Aug 29 11:20:54 1997

#

| Chapter 21 JavaScript Reference |

# 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"

URL.port |  | URL.search