'port' Example : port « Javascript Properties « JavaScript Reference

'port' Example

    
<html>
<body>
<script language="JavaScript">
    function function1() {
        alert(document.getElementById("myLink").port);
    }
</script>
<a id="myLink" href="http://www.java2s.com" target="_blank">java2s.com home page</a>
<input type="Button" value="Port Number" onClick="function1();">
</body>
</html>

    
      
      








Related examples in the same category

1.'port' Syntax and Note
2.'port' is applied to