Converts the text selection into an ordered list.
Command InsertUnorderedList User interface None. Set bUserInterface to false or omit. execCommand vValue Optional. String that specifies an id attribute for the unordered list. May be set to null or omitted. Applies to execCommand, queryCommandEnabled, queryCommandIndeterm, queryCommandState, queryCommandSupported, queryCommandValue.
If the previous format block is already an ordered list, this command identifier will append the current format block to that previous ordered list. If the text selection contains named objects, they are replaced by the list.
The following example converts the paragraphs of a document into a list:
var tr = document.body.createTextRange(); tr.execCommand("InsertUnorderedList", false, 'listId');
Internet Explorer 4.0 and later.