HTML DOM ColumnGroup Object

ColumnGroup object

The ColumnGroup object represents the HTML <colgroup> element.

Access ColumnGroup object

You can access the <colgroup> element by using getElementById():

var x = document.getElementById("myColgroup");

Try it yourself

Create ColumnGroup object

You can create a <colgroup> element by using the document.createElement() method:

var x = document.createElement("COLGROUP");

ColumnGroup object properties

Properties Description
span Sets or returns the value of the span attribute of the column.

Standard Properties and Events

ColumnGroup Object Supports StandardsPropertiesAndEvents.

Related Pages

HTML Tutorial:HTML Tables

HTML Reference Manual:HTML <colgroup> Tag

JavaScript Reference Manual:HTML DOM Column Object