Export (0) Print
Expand All

blockFormats property

Retrieves a collection of strings that specify the names of the available block format tags.

Syntax

JavaScript

p = object.blockFormats

 

Property values

Type: Object

A collection of the names of the available block format tags.

Standards information

There are no standards that apply here.

Remarks

blockFormats was introduced in Microsoft Internet Explorer 6

Examples

The following example displays the total number of block formats, and then displays a list of their names.

Code example: http://samples.msdn.microsoft.com/workshop/samples/author/editing/DialogHelper/blockformatsshowme.htm



function testblockFormats()
{
var a=dlgHelper.blockFormats.count
	alert(a); //show total number of block formats
for (i = 1;i < dlgHelper.blockFormats.count;i++)
	{ 
		
		var f= f  + "  " + dlgHelper.blockFormats(i) 
	} 
	alert(f) //show names of all block formats
 }

 

 

Show:
© 2014 Microsoft