Mega Code Archive

 
Categories / JavaScript Reference / Javascript Collections
 

BlockFormats Example

<html> <body> <script language="JavaScript"> function function1(){     alert('Number of blockformats: '+ myDhelper.blockFormats.count);     var element = '';     for (i = 1;i < myDhelper.blockFormats.Count;i++) {         element = element + ', ' + myDhelper.blockFormats(i);     }      alert('The names are:\n' + element);  }  </script> <object id="myDhelper"          classid="clsid:3050f819-98b5-11cf-bb82-00aa00bdce0b"          width="0px"          height="0px"> </object> <input type="button" value="Retrieve blockFormats" onclick="function1();"> </body> </html>