最新国产好看的视频,伊人天堂AV在线,国产Aaaaaa视频,蜜臀视频在线观看一区,人妻av色图,密臀久久久精品影片,青青视频免费观看毛片,久草在线观看视,国产三级精品色情在线

port Property

Internet Development Index

Sets or retrieves the port number associated with a URL.

Syntax

HTMLN/A
Scriptingobject.port [ = sPort ]

Possible Values

sPortString that specifies or receives the port number associated with the URL. See remarks.

The property is read/write. The property has no default value.

Expressions can be used in place of the preceding value(s), as of Microsoft® Internet Explorer 5. For more information, see About Dynamic Properties.

Remarks

The port will resolve based on the default port for the protocol set in the HREF attribute: 21 for FTP, 80 for HTTP, and so forth.

Proprietary protocols that do not require a port return 0 or an empty string.

location.port returns an empty string when read in a page reached by the http protocol.

Example

This example function returns the port property of two a elements.

<SCRIPT>
function getPort()
{
alert ("FTP: " + oFtp.port + "\n" + "HTTP: " + oHttp.port);
}
</SCRIPT>
<A HREF="ftp://www.microsoft.com" onclick="getPort();" ID=oFtp>ftp</A>
<A  onclick="getPort();" ID=oHttp>http</A>

Standards Information

There is no public standard that applies to this property.

Applies To

A, AREA, location
博客| 大荔县| 景谷| 遂宁市| 宝丰县| 荣成市| 图们市| 达孜县| 石狮市| 平塘县| 屯门区| 嘉鱼县| 铁岭市| 正阳县| 安泽县| 阿克陶县| 泽普县| 搜索| 凤山市| 区。| 广平县| 宜川县| 龙山县| 靖边县| 梓潼县| 濮阳市| 固阳县| 太白县| 邵阳市| 新建县| 日喀则市| 汝州市| 龙州县| 全州县| 墨玉县| 容城县| 东宁县| 无棣县| 平定县| 忻州市| 泽州县|