This yields the protocol value of the HREF attribute in an <A> tag.
Using this property as an LValue, you can redefine the protocol for the link if it has an HREF. You might want to do this if you want to change the way you access a particular document.
The URL topic enumerates a large number of available protocols that can be used in SRC and HREF HTML tag attributes.
Since the protocol property of an Anchor object is not portable, you should use the protocol property of the corresponding Url object to be able to work across MSIE and Netscape.
Prev | Home | Next |
Anchor.port | Up | Anchor.protocolLong |
JavaScript Programmer's Reference, Cliff Wootton Wrox Press (www.wrox.com) Join the Wrox JavaScript forum at p2p.wrox.com Please report problems to support@wrox.com © 2001 Wrox Press. All Rights Reserved. Terms and conditions. |