HTML DOM Column Object
- Previous Page <code>
- Next Page <colgroup>
Column object
The Column object represents the HTML <col> element.
Accessing a Column object
You can access the <col> element by using getElementById():
var x = document.getElementById("myCol");
Creating a Column object
You can create a <col> element by using the document.createElement() method:
var x = document.createElement("COL");
Column object properties
Properties | Description |
---|---|
span | Sets or returns the value of the column's span attribute. |
Standard Properties and Events
Column Object Supports StandardsPropertiesAndEvents.
Related Pages
HTML Tutorial:HTML Tables
HTML Reference Manual:HTML <col> Tag
JavaScript Reference Manual:HTML DOM Columngroup Object
- Previous Page <code>
- Next Page <colgroup>