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

Example

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

Try it Yourself »

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

Post Author: Zahid Farid

Leave a Reply

Your email address will not be published. Required fields are marked *