最新国产好看的视频,伊人天堂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
雅江县| 调兵山市| 自治县| 原平市| 盐源县| 枣阳市| 肇州县| 滨州市| 临西县| 富民县| 泾阳县| 玛纳斯县| 庄河市| 胶州市| 黎川县| 克东县| 多伦县| 时尚| 蒙阴县| 类乌齐县| 宜宾市| 佛山市| 黎平县| 屏边| 务川| 大洼县| 托克逊县| 广河县| 丰原市| 中江县| 南昌县| 新密市| 达尔| 武汉市| 方山县| 五大连池市| 安岳县| 长寿区| 开原市| 儋州市| 庄河市|