JavaScript Reference/Javascript Properties/specified

Материал из Web эксперт
Перейти к: навигация, поиск

"specified" Example

    
<html>
<body>
<button id="myButton" 
        onclick="alert(this.attributes["id"].specified);">
        Specified Attributes
</button>
</body>
</html>



"specified" is applied to

+----------------+--------------------------------------------------------------+
| Applied_To     |attribute                                                     |
+----------------+--------------------------------------------------------------+



"specified" Possible Values

Possible Values
true 
false.



"specified" Syntax and Note

Note:
Read-only property. 
Is the attribute explicitly specified in the code. 
    
Syntax:
    
document.all.elementID.attributes[index].specified