JavaScript Reference/Javascript Properties/compact
"compact" Example
<source lang="javascript">
<html> <body>
- Definition List:
- 1.
- Definition 1.
- 2.
- Definition 2.
- 3
- Definition 3.
<button onclick="myDL.rupact=true;">Compact</button> <button onclick="myDL.rupact=false;">De-Compact</button> </body> </html>
</source>
"compact" is applied to
<source lang="javascript">
+----------------+--------------------------------------------------------------+
| Applied_To |<dir> (IE6 only)- |
| |<menu> (IE6 only)
- |
| |
- |
+----------------+--------------------------------------------------------------+
</source>
"compact" Syntax and Note
<source lang="javascript">
Note: Read and write property. Remove extra spaces between a list element"s items or not.
Syntax:
document.getElementById("elementID").rupact = value document.all.elementID.rupact = value // IE only