Fun with tables

  • This is a Version 5 script.
  •  

    This page contains some tests to create and insert TRs, TDs, THEADs and much more into tables.

    Unfortunately this page is not yet ready. I nonetheless put it online because I refer to it in the DOM Compatibility Table.
    At the moment it's not a very clear page, I'll write some explanations later on.

    This is the caption of the table
    The THEAD
    Insert TR
    Click for more info Click for more info Click for more info
    The TBODY
    Insert TR
    Click for more info Click for more info Click for more info
    Click for more info Click for more info Click for more info
    The TFOOT
    Insert TR
    Click for more info Click for more info Click for more info

    Fun things to do

    Arrays

    Count cells
    Count rows
    Count TBODies

    Accessing sections

    Access caption
    Access THEAD
    Access TFOOT

    Deleting

    Works in IE4+, NN6, Konqueror except:
    Konqueror crashes on deleteCaption()
    IE4 Mac doesn't know the TBodies array.

    TBodies not necessary except Konqueror with deleteRow().

    Delete caption
    Delete cell
    Delete row
    Delete TFoot
    Delete THead

    Build your own

    Create caption
    Create THead
    Create TFoot

    Insert Row
    Insert Cell

    Home