Note: Read and write property. Remove extra spaces between a list element's items or not. Syntax: document.getElementById("elementID").compact = value document.all.elementID.compact = value // IE only