JavaScript Reference/Javascript Properties/port
Версия от 18:30, 25 мая 2010; (обсуждение)
"port" Example
<html>
<body>
<script language="JavaScript">
function function1() {
alert(document.getElementById("myLink").port);
}
</script>
<a id="myLink" href="http://www.wbex.ru" target="_blank">wbex.ru home page</a>
<input type="Button" value="Port Number" onClick="function1();">
</body>
</html>
"port" is applied to
+----------------+--------------------------------------------------------------+
| Applied_To |<a> <area> |
| |location |
+----------------+--------------------------------------------------------------+
"port" Syntax and Note
Note:
Read and write property.
Specifies the URL port number.
Syntax:
document.getElementById("elementID").port = value
document.all.elementID.port = value // IE only
location.port = value