JavaScript Reference/Javascript Properties/Count

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

"Count" Example

   <source lang="javascript">
   

<html> <body> <object id="myDhelper"

       classid="clsid:3050f819-98b5-11cf-bb82-00aa00bdce0b">

</object> <button onclick="alert(myDhelper.blockFormats.Count);"> Number of Block Formats </button> </body> </html>


     </source>
   
  


"Count" is applied to

   <source lang="javascript">

Names noted with an asterisk (*) are JavaScript properties only. +----------------+--------------------------------------------------------------+ | Applied_To |blockFormats* fonts* | +----------------+--------------------------------------------------------------+

     </source>
   
  


"Count" Syntax and Note

   <source lang="javascript">

Note: Read-only property. Returns the number of block-format elements.

Syntax:

dialogHelperName.collectionName.Count


     </source>