Please note, this is a STATIC archive of website developer.mozilla.org from 03 Nov 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

itemCount

itemCount
Type: integer
Read only property holding the number of child items.

Example

var bucket = document.getElementById("attachmentBucket");
if(bucket.itemCount == 0) {
  dump("\n\n No attachments \n\n");
} else {
  dump("\n\n Attachment Exists \n\n");
}

Document Tags and Contributors

 Contributors to this page: Sheppy, ethertank, trevorh, chinmay, Enn, Marsf
 Last updated by: Sheppy,