JavaScript DHTML/Javascript Collections/blockFormats

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

"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++) { 
       alert(myDhelper.blockFormats(i)); 
    } 
} 
</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>