protocol

This property is used to set the protocol to be used with a URL. For example, in the address HTTP://www.WalkTheGeek.com, the protocol used is 'HTTP:', which is the Hyper Text Transfer Protocol. Other protocols are 'FTP:', which stands for File Transfer Protocol, 'mailto:', which obviously sends mail, and 'file:', which references a file on the local workstation or on a network.

syntax:

document.all.mainpage.protocol = "http"

This Property is used to access attributes of the following:

A (Anchor)
AREA
location