August 1999
Intermediate to advanced
1488 pages
72h 53m
English
document.links[num].protocol
The protocol property contains the protocol (http:, file:, ftp:, and so on) specified in the URL, including the ending colon (:). This property is a read/write string.
In Listing 7.18, the protocol property containing http: is displayed below the area link.
<html> <h2>The Color Page</h2> <map name="colorMap"> <area name="greenArea" coords="1,1,48,48" href="http://www.green.com:5678/green.html?query=green#GREEN" target="_top"> </map> <img src="box4.gif" align="top" height="100" width="100" usemap="#colorMap"> <script> <!-- Hide //Display the protocol associated ... |
Read now
Unlock full access