Home | Top | Free Ajax Editor | JavaScript Editor | Get Advanced JavaScript and Ajax Editor, Validator and Debugger! 1st JavaScript Editor. |
Sets or retrieves a Boolean value indicating whether the list should be compacted by removing extra space between list objects.
This property now applies to the menu and dir objects.
Syntax
< ELEMENT COMPACT ... > |
object . compact ( v ) [ = bCompactList ] |
Possible Values
bCompactList | Boolean that specifies or receives one of the following values.
|
The property is read/write. The property has a default value of false .
Expressions can be used in place of the preceding value(s), as of Microsoft® Internet Explorer 5. For more information, see About Dynamic Properties .
Remarks
There is no functionality implemented for the compact property for the ul , ol , dir and menu elements unless defined by the author.
Examples
The following example shows how to use the compact property in HTML. Note that the presence of the word COMPACT sets the compact property to true
<HTML>The following example shows how to set the compact property using Microsoft JScript®
<HTML>
Standards Information
This property is deprecated in HTML and is defined in World Wide Web Consortium (W3C) Document Object Model (DOM) Level 1 .
Applies To
|
MENU , DIR , DL , UL , OL |
Home | Top | Free Ajax Editor | JavaScript Editor | Get Advanced JavaScript and Ajax Editor, Validator and Debugger! 1st JavaScript Editor. |