Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

HTML DOM tr ch property

tr ch property

tr Object Reference tr object


Definition and Usage

The ch property sets or returns the alignment character of the cells in a row.

The content alignment of all cells in the same column depends on this character.

Syntax

Set the ch property:

trObject.ch="

text

"

Return the ch property:

trObject.ch

Tip: The ch property has no default value.


Browser support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

All major browsers support the ch property, however, no major browser implements this functionality.


Example

Example

Align the "Savings" column:

Runoob Tutorial(runoob.com)

    

        

        

    

    

        

        

    

    

        

        

    

    

        

        

    

Month Deposit
January $100.00
February $10.00

Note:Not all major browsers support the char property.

Try it »


tr Object Reference tr object