xTableHeaderFixed is an unobtrusive table enhancement. It makes a copy of a table's THEAD section. While the table is visible in its container the THEAD copy will be fixed to the top of the container, so you can scroll up and down in a long table and the header will always be visible. The container can be a window or a scrollable element. The position and size of the THEAD copy will be adjusted when the window is resized. You only need to instantiate one xTableHeaderFixed object for each group of tables that have the same styling - and so those tables should have a common className, which you pass to the constructor. You must assign all of the table's styles relative to this className so that the THEAD copy will be styled just like it. View the source of a demo page to see the required CSS. It takes the widths of all THs (not TDs) in the THEAD and assigns them to the corresponding THs in the THEAD copy. Notice table 3 of the demos, where there are colspan'd TDs. TDs are used here so those widths would not get assigned to the THEAD copy, because it is the TH widths which correspond to the widths of the table's columns. When instantiating, you do not have to keep a reference to the object - it keeps a reference to itself, but if you plan on calling the init method later then you'll need to keep a reference to the object.