JavaScript Reference/Javascript Properties/nameProp
"nameProp" Example
<html>
<body>
<script language="JavaScript">
function function1() {
alert(document.getElementById("myA").nameProp);
}
</script>
<a id="myA" href="http://www.wbex.ru/" target=_blank>wbex.ru Home Page</a>
<button onclick="function1();">wbex.ru Home Page nameProp</button>
</body>
</html>
"nameProp" is applied to
+----------------+--------------------------------------------------------------+
| Applied_To |<a> <img> |
+----------------+--------------------------------------------------------------+
"nameProp" Syntax and Note
Note:
Read-only property.
The file name specified in the href or src property.
Syntax:
document.all.elementID.nameProp