This yields the port number value of the HREF attribute in an <A> tag.
You can assign a value to this property as if it was an LValue.
Since the port property of an Anchor object is not portable, you should use the port property of the corresponding Url object to be able to work across MSIE and Netscape.
Do not include the delimiting colon when you assign a value to this property.
Make sure you assign a numeric value. Non-numeric values will be rejected to avoid the possibility of a completely invalid port number being used.
Prev | Home | Next |
Anchor.pathname | Up | Anchor.protocol |
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. |