Sets or retrieves the port number associated with a URL.
HRESULT IHTMLAreaElement::get_port(BSTR *p);HRESULT IHTMLAreaElement::put_port(BSTR v);
- Pointer to a variable of type BSTR that receives the port number associated with the URL. See remarks.
- BSTR that specifies the port number associated with the URL. See remarks.
Returns S_OK if successful, or an error value otherwise.
The port will resolve based on the default port for the protocol set in the HREF attribute:
80for HTTP, and so forth.
Proprietary protocols that do not require a port return
0or an empty string.