THE WORLD'S LARGEST WEB DEVELOPER SITE
HTMLCSSJAVASCRIPTSQLPHPBOOTSTRAPJQUERYANGULARXML
 

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():

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

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 ColumnGroup object also supports the standard properties and events.


Related Pages

HTML tutorial: HTML tables

HTML reference: HTML <colgroup> tag

JavaScript reference: HTML DOM Column Object