JavaScript Reference/Javascript Properties/specified

Материал из Web эксперт
Версия от 11:21, 26 мая 2010; Admin (обсуждение | вклад) (1 версия)
(разн.) ← Предыдущая | Текущая версия (разн.) | Следующая → (разн.)
Перейти к: навигация, поиск

"specified" Example

   <source lang="javascript">
   

<html> <body> <button id="myButton"

       onclick="alert(this.attributes["id"].specified);">
       Specified Attributes

</button> </body> </html>


     </source>
   
  


"specified" is applied to

   <source lang="javascript">

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

     </source>
   
  


"specified" Possible Values

   <source lang="javascript">

Possible Values true false.


     </source>
   
  


"specified" Syntax and Note

   <source lang="javascript">

Note: Read-only property. Is the attribute explicitly specified in the code.

Syntax:

document.all.elementID.attributes[index].specified


     </source>