JavaScript Reference/Javascript Properties/port
"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