HTML DOM Column Object

Column Object

The Column object represents an HTML <col> element.

Access a Column Object

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

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

Create a Column Object

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

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

Column Object Properties

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

Standard Properties and Events

The Column object also supports the standard properties and events.