HTML DOM ColumnGroup Object

ColumnGroup Object

The ColumnGroup object represents an HTML <colgroup> element.

Access a ColumnGroup Object

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

Example

var x = document.getElementById(“myColgroup”);

Try it Yourself »

Create a ColumnGroup Object

var x = document.createElement(“COLGROUP”);

ColumnGroup Object Properties

Property Description
span Sets or returns the value of the span attribute of a column group

Standard Properties and Events

The Abbreviation object supports the standard properties and events.

Post Author: Zahid Farid