X
HOME HTML CSS JAVASCRIPT SQL PHP JQUERY XML ASP.NET MORE...
REFERENCES | EXAMPLES | FORUM | ABOUT

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

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

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



Your suggestion:

Close [X]

Thank You For Helping Us!

Your message has been sent to W3Schools.

Close [X]
Search w3schools.com:

WEB BUILDING

Download XML Editor FREE Website BUILDER Free HTML5 Templates FREE Website Templates Free HTML Templates

SHARE THIS PAGE

facebook